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

Re: Should warnings be issued for unrecognised pragmas ?


> From: Joe Buck <jbuck@synopsys.com>
> Date: Sat, 18 Oct 97 12:55:55 PDT
> 
> Because large numbers of people use -Wall all the time on every build,
> no warning should be added to -Wall that cannot be suppressed without
> making the code worse.  Since it's easy to supress compiler-specific
> pragmas belonging to other compilers with #ifdef __Green_Hills__ or
> the like, I don't care in this case whether -Wall objects or not.
> So -Wunrecognized_pragmas could be in -Wall.  On the other hand,
> some of the "Effective C++" warnings can't be suppressed without
> making some classes needlessly larger, so they can't be in -Wall.
> 

Can you tell me what these pragmas are, then I can make sure that the
patch will not generate warnings for them.  I assume that it is OK for
GCC to ignore these pragmas ?

Nick



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