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

Re: Help w/-Wtraditional warning about ISO C style function definitions


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.


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