public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54361] New: Compiling for c++11 gives a warning on scanf() with %as format specifier
@ 2012-08-23 23:34 strikosn at gmail dot com
  2012-08-23 23:35 ` [Bug c++/54361] " strikosn at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: strikosn at gmail dot com @ 2012-08-23 23:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54361

             Bug #: 54361
           Summary: Compiling for c++11 gives a warning on scanf() with
                    %as format specifier
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: strikosn@gmail.com


Target: x86_64-unknown-linux-gnu
Configured with: /home/utils/src/gcc-4.7.0/configure
--prefix=/home/utils/gcc-4.7.0 --enable-languages=c,c++,objc,fortran
--with-gmp=/home/utils/gmp-5.0.2-static
--with-mpfr=/home/utils/mpfr-3.1.0-static --with-mpc=/home/utils/mpc-0.9-static
--with-as=/home/utils/binutils-2.21.1/bin/as
--with-ld=/home/utils/binutils-2.21.1/bin/ld
Thread model: posix
gcc version 4.7.0 (GCC)

Source code attached as c.cpp

$ g++ -std=c++11 -Wall -Werror c.cpp
c.cpp: In function 'int main()':
c.cpp:10:26: error: format '%a' expects argument of type 'float*', but argument
2 has type 'char**' [-Werror=format]
c.cpp:7:7: error: unused variable 'a' [-Werror=unused-variable]
cc1plus: all warnings being treated as errors


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-24  8:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-23 23:34 [Bug c++/54361] New: Compiling for c++11 gives a warning on scanf() with %as format specifier strikosn at gmail dot com
2012-08-23 23:35 ` [Bug c++/54361] " strikosn at gmail dot com
2012-08-23 23:54 ` jakub at gcc dot gnu.org
2012-08-24  0:04 ` strikosn at gmail dot com
2012-08-24  8:02 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).