-Wmissing-prototypes is broken
Jason Merrill
jason@cygnus.com
Mon Sep 21 17:07:00 GMT 1998
>>>>> 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
More information about the Gcc-bugs
mailing list