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: Darwin warnings patrol


Geoff Keating wrote:

Neil Booth <neil@daikokuya.co.uk> writes:


Stan Shebs wrote:-


+ struct cpp_reader;
extern void darwin_pragma_ignore PARAMS ((struct cpp_reader *));
extern void darwin_pragma_options PARAMS ((struct cpp_reader *));
extern void darwin_pragma_unused PARAMS ((struct cpp_reader *));

This shouldn't be necessary.  The one in PARAMS is a declaration.

... but causes a warning about declaring a structure tag in a
parameter list, surely?

That's what happens.  Richard Earnshaw did the same thing for ARM not
long ago. Next is to get the "unused static" warnings out of dwarf2out.c,
since Darwin #ifdefs out all the dwarf2 code that uses them.

Stan



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