This is the mail archive of the gcc-bugs@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]

Re: -Wmissing-prototypes is broken


>>>>> Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:

 > On Wed, 9 Sep 1998, Jeffrey A Law wrote:
 >>>   void f(int i) {
 >>>       i++;
 >>>       }
 >> Seems to work for me:
 >> 
 >> gcc -Wmissing-prototypes foo.c -c
 >> foo.c:1: warning: no previous prototype for `f'
 >> [...]
 >> I also get the error with the mainline sources.

 > Ahh, I just realized that this is specific to g++ resp. the C++ frontend.

My guess would be that whoever implemented it didn't port it to the C++
frontend.

Jason


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