public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50134] New: -Wmissing-prototypes doesn't work for C++
@ 2011-08-19 22:17 hjl.tools at gmail dot com
  2011-08-20 10:44 ` [Bug c++/50134] " schwab@linux-m68k.org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: hjl.tools at gmail dot com @ 2011-08-19 22:17 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50134
           Summary: -Wmissing-prototypes doesn't work for C++
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


[hjl@gnu-33 gcc]$ cat x.c
int
foo (int x)
{
 return x;
}
[hjl@gnu-33 gcc]$ ./xgcc -B./ -S -O -Wmissing-prototypes x.c
x.c:2:1: warning: no previous prototype for ‘foo’ [-Wmissing-prototypes]
[hjl@gnu-33 gcc]$ ./g++ -B./ -S -O -Wmissing-prototypes x.c
cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid
for Ada/AdaWhy/C/ObjC but not for C++ [enabled by default]
[hjl@gnu-33 gcc]$ ./g++ -B./ -S -O x.c
[hjl@gnu-33 gcc]$ ./g++ -B./ -Wall -S -O x.c
[hjl@gnu-33 gcc]$


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

end of thread, other threads:[~2012-06-01 12:39 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-19 22:17 [Bug c++/50134] New: -Wmissing-prototypes doesn't work for C++ hjl.tools at gmail dot com
2011-08-20 10:44 ` [Bug c++/50134] " schwab@linux-m68k.org
2011-09-30  5:59 ` paolo.carlini at oracle dot com
2011-09-30  7:47 ` manu at gcc dot gnu.org
2011-09-30  8:05 ` manu at gcc dot gnu.org
2011-09-30  8:58 ` redi at gcc dot gnu.org
2011-09-30 14:31 ` joseph at codesourcery dot com
2011-09-30 14:39 ` redi at gcc dot gnu.org
2012-05-15 12:05 ` manu at gcc dot gnu.org
2012-05-15 12:24 ` manu at gcc dot gnu.org
2012-05-15 12:31 ` manu at gcc dot gnu.org
2012-05-24 15:31 ` paolo.carlini at oracle dot com
2012-05-24 19:05 ` manu at gcc dot gnu.org
2012-05-28 21:48 ` paolo.carlini at oracle dot com
2012-05-28 22:09 ` redi at gcc dot gnu.org
2012-05-30 18:58 ` steven at gcc dot gnu.org
2012-05-30 19:08 ` manu at gcc dot gnu.org
2012-06-01  0:39 ` redi at gcc dot gnu.org
2012-06-01  8:47 ` redi at gcc dot gnu.org
2012-06-01  9:40 ` redi at gcc dot gnu.org
2012-06-01 12:39 ` paolo.carlini at oracle dot com

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).