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: Desire gcc option to skip warnings in standard headers


In message <15759.899189718@hurl.cygnus.com>you write:
>
>  In message <199806291617.SAA24744@jolan.ppro>you write:
>  > A #pragma seems more logical, and more flexible too.
>pragmas are generally frowned upon in gcc.  You'll have a hard time
>convincing anyone to accept new ones.

Many of the reasons why pragmas are disliked (not usable in macros
etc.) are gone with the ISO C9x _Pragma() construct. Of course there
could be still name collisions of pragma names with other compilers, 
but that can be easily fixed which a #ifdef (and __attribute__ needs 
#ifdef magic too)


-Andi



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