[warning control] New #pragma GCC diagnostic
Andrew Pinski
pinskia@physics.uc.edu
Tue Jan 17 04:16:00 GMT 2006
On Jan 16, 2006, at 10:32 PM, DJ Delorie wrote:
> The search logic is intentionally simplistic. I thought about
> exporting find_opt from opts.c, but it needs to know the lang_mask and
> that didn't seem to be available. I suppose we could cache the mask
> in opts.c and export a wrapper function.
>
> Ok to apply after regression checks finish?
Even though this is not implemented in your patch but aving a way to
push
and pop the current state of warnings would be nice so that I can say:
#pragma GCC diagnostic push
#pragma GCC diagnostic error -Wunused
......
#pragma GCC diagnostic pop
Thanks,
Andrew Pinski
More information about the Gcc-patches
mailing list