On Mon, Jul 11, 2011 at 1:11 AM, Paul Eggert <egg...@cs.ucla.edu> wrote:
> On 07/10/11 02:16, James Youngman wrote:
>> A function-level pragma would probably be ideal here, but
>> unfortunately they can only be used to tweak optimisation and function
>> attributes.
>
> Can you do "#pragma GCC diagnostic push" at the start of the function,
> and "#pragma GCC diagnostic pop" at the end?  That's *supposed* to
> work (not that I've tried it....).

I'll try it next week.   It's not documented in the GCC-4.4 Texinfo
manual, though; perhaps it's a recent introduction.

James.

Reply via email to