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


Carlo Wood wrote:

> A #pragma seems more logical, and more flexible too.
>
> Other compilers allow to turn off each type of
> warning seperately with a #pragma, which would be
> the ideal.  It would introduce a boolean for each type
> of warning, and I imagine we need an array for that:
> An array that contains these variables, and the warnings
> and some code that is used.

Och aye, I know a certain compiler that does that. The feature is used widely in the
rather broken libraries shipped with said compiler...

Anyway, I agree with Jeff that #pragmas are not the way to go. One does want to
write portable code once in a while.[skip some very non-egcs-ish example code]

> ...
>
> Doesn't that look nice? :)

Beautiful, and I'm sure you'd be willing to spend some time to modify egcs in this
manner :->

--
Branko Cibej   <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
phone: (++386 61) 186 53 49  fax: (++386 61) 186 52 70




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