This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Desire gcc option to skip warnings in standard headers
- To: Carlo Wood <carlo at runaway dot xs4all dot nl>
- Subject: Re: Desire gcc option to skip warnings in standard headers
- From: Branko Cibej <branko dot cibej at hermes dot si>
- Date: Tue, 30 Jun 1998 09:10:35 +0200
- Cc: "egcs at cygnus dot com" <egcs at cygnus dot com>
- Organization: HERMES SoftLab
- References: <199806291617.SAA24744@jolan.ppro>
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