On 29 April 2013 12:33, Daniel Janzon wrote: > >>>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: You didn't say you were doing a history project ;-) (It would have helped to say you're not using a currently supported version.) > 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. Right. There is more fine-grained control over warnings in recent releases.