This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Further option handling bugs


I'm afraid the option handling rewrite introduced some further bugs
in addition to the -Wsigned problem noted last week:

  % cat x.c
  void f() { }
  % cat x.cc
  void f() { }
  % /sw/gcc-current/bin/gcc -Wmissing-prototypes -c x.c
  x.c:1: warning: no previous prototype for `f'
  % /sw/gcc-current/bin/g++ -Wmissing-prototypes -c x.cc
  %

-Wmissing-prototypes is documented as a C-only option in doc/invoke.texi
and is not implemented in g++, but g++ fails to complain.

Likewise for -Wstrict-prototypes.

Neil, would you mind having a look? I'm sure it'll take you less time
to fix than it took me to spot and track it down. ;-)

Gerald
-- 
Gerald "Jerry"   pfeifer@dbai.tuwien.ac.at   http://www.pfeifer.com/gerald/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]