>>On 29 April 2013 11:06, Daniel Janzon wrote: >> int main() >> { >> #warning "not implemented yet" >> } > >-Werror -Wno-error=cpp should do it Thanks, it didn't work on gcc-4.4 though: daniel@mio$ gcc-4.4 -Werror -Wno-error=cpp -o test-warning test-warning.c cc1: error: -Werror=cpp: No option -Wcpp daniel@mio$ So maybe I'm quite likely stuck, I mean they probably added no-cpp in later releases of gcc because it couldn't be done in earlier releases. Of course it's possible to explicitly list all warnings I want to fail on but that's kind of ugly. Thanks anyway, Daniel