This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Help w/-Wtraditional warning about ISO C style function definitions
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 6 Mar 2002 23:05:10 +0000
- Subject: Re: Help w/-Wtraditional warning about ISO C style function definitions
- References: <200203062158.QAA07847@caip.rutgers.edu>
Kaveh R. Ghazi wrote:-
> I was wondering if there was an easy way to determine when we reach the code
> below whether we are in the midst of parsing a function definition,
> possibly by examining `current_declspecs' or something similar.
>
> Thanks in advance for any help.
No, you can't tell until you see a ';' or '{' later. This is the cause
of other issues in the C front end, e.g. with -Wshadow.
Neil.