Werner LEMBERG wrote:
This is better, thanks. However, I'm not happy to globally disable the warning. Isn't it possible to use GCC function attributes to suppress the warning locally, exactly at the right spot – or rather telling GCC that there is nothing to warn about?
Could be, yes.
Alternatively, I suggest using the `push' and `pop' functionality of #pragma.
I'm not sure I'd want to clutter up the code with even more #directives mixed in with the actual code; it's hard enough to read as it is. The problem is pretty small and hardly seems worth all this hassle.