This is the mail archive of the gcc-help@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: How to suppress warning?


Lyle Taylor wrote: 

> Why is it that the preprocessor and compiler can't just be smart
> enough to handle it?

I think they do, they just warn anyway.

My quick test attached; looks fine on 2.95-3.4.

Rup.

Attachment: teapot.c
Description: Text document

Attachment: teapot.h
Description: Text document

Attachment: teapot2.h
Description: Text document


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