This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: -Wmissing-prototypes is broken
- To: pfeifer at dbai dot tuwien dot ac dot at (Gerald Pfeifer), egcs-bugs at cygnus dot com
- Subject: Re: -Wmissing-prototypes is broken
- From: Jason Merrill <jason at cygnus dot com>
- Date: 21 Sep 1998 17:07:07 -0700
- References: <9864.905365647@hurl.cygnus.com> <Pine.GSO.4.03.9809101436340.12806-100000.cygnus.egcs.bugs@markab.dbai.tuwien.ac.at>
>>>>> 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