sjb
Joined: 13 Apr 2010 Posts: 34 Location: UK
|
warning suppression inside macros |
Posted: Thu May 13, 2010 3:23 am |
|
|
I have several macros in my code of the form..
Code: |
#define DO_SOMETHING do { ..... } while(FALSE)
|
but when ever I use them I get warnings about condition always being false. That's a correct warning, but in this case I'd like to suppress it. I can do this by using #ignore_warnings, thus
Code: |
#ignore_warnings 204
DO_SOMETHING;
#ignore_warnings NONE
|
However, it would be rather better if I could suppress the warning once inside the macro definition, but I can't find how to use #ignore_warnings inside the macro definition. Is there a way to do this, or another way to suppress this waring? |
|