[Bug c++/54361] Compiling for c++11 gives a warning on scanf() with %as format specifier
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 23 23:54:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54361
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-23 23:54:24 UTC ---
The warning is correct, %as (the oldish GNU extension) clashes with ISO C99 a
modifier for hex floats, if you want to allocate memory, use %ms instead, which
is the standard way of doing the same.
More information about the Gcc-bugs
mailing list