This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -Wall incorrectly complains about scanf with %a
Hi everyone,
I defer to Segher's comments on C99, and retract my statements regarding
"%as" versus "%a".
Seems that GNU libc's extension is (now) stomping on C99, and that "%a"
(and "%A") is a valid format specifier alias for "%e".
Note that "%a" is NOT in C++98! (But may sneak in their through
code-mingling. I'm not sure what C++03 says about it, if anything.)
Relevant references:
C99 sections 6.4.4.2, 6.4.8
C++98 sections 2.9, 2.13.3
Learn something new everyday! Love this forum!
--Eljay