When using the #warning directive instead of one warning, I get two — the one I generate, plus an additional warning: #warning is a GCC extension [enabled by default] .
I can suppress the result of the #warning directive itself, with -Wno-cpp , but this is the opposite of what I want.
I can get around this using #pragma message() , but it seems that the #warning directive is pretty pointless - there is no way to suppress this warning?
gcc compiler-warnings gcc-warning warnings
Riot
source share