This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54361] Compiling for c++11 gives a warning on scanf() with %as format specifier
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Aug 2012 08:02:39 +0000
- Subject: [Bug c++/54361] Compiling for c++11 gives a warning on scanf() with %as format specifier
- Auto-submitted: auto-generated
- References: <bug-54361-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54361
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-24 08:02:39 UTC ---
It has a lot with C++11, if you read that standard, you'll see that for C
library stuff it refers to ISO C99 standard. Therefore, using %as is really
invalid in C++11 programs.