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....).