From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Sosnick To: gcc-help@gcc.gnu.org, gcc@gcc.gnu.org Subject: missing gcc C comp Date: Tue, 30 Nov 1999 23:28:00 -0000 Message-ID: <14379.8929.105430.406739@burnside> X-SW-Source: 1999-11n/msg00178.html Message-ID: <19991130232800.FcHtljgkR-NAR2NvtFc923WslL5h0eGgYwRcvGrkATg@z> Once upon a time gcc had some combination of command line options that caused it to make noise when C code ignored the return value of a function: extern int foo(); int main() { foo(); /* gcc could be made to moan about the ignored return value */ exit(1); } It could, of course, be annoying when moaning about ignoring the return of value of fprintf and other such functions whose return values you had no use for. Nonetheless, I liked having the option around. Does anybody know what happened to this warning? In the latest versions (2.95.x, 2.8.x) no amount of twiddling with the various -W flags seems to be able to make it complain. Did it go away or am I just missing something.