You are not logged in.

#1 2010-04-27 15:24:00

Schaffer
Member
Registered: 2007-09-16
Posts: 9

GCC -Wno-unused-result

Why does gcc tell me that this option is not recognized?

$ gcc -Wall -Wno-unused-result test.c -o test
test.c: In function 'main':
test.c:8: warning: statement with no effect
At top level:
cc1: error: unrecognized command line option "-Wno-unused-result"

http://gcc.gnu.org/onlinedocs/gcc-4.5.0 … tions.html

Offline

Board footer

Powered by FluxBB