ado@NCIFCRF.GOV (Arthur David Olson) (09/29/88)
(We're running SunOS 4.0 on a Sun 3/110.) Description: The Gnu C compiler's "-Wall" option sometimes tells you that "control reaches end of non-void function" when it doesnt. Repeat-By: Script started on Tue Sep 27 14:52:18 1988 daisy$ cat try.c int main(argc, argv) int argc; char * argv[]; { if (argc == 1) return 0; else if (argc == 2) return 1; else return 2; } daisy$ gcc -v -Wall try.c gcc version 1.28 /usr/local/lib/gcc-cpp -v -undef -D__GNU__ -D__GNUC__ -Dmc68000 -Dsun -Dunix -Dmc68020 -Wall -D__HAVE_FPU__-Dmc68020 try.c /tmp/cca05937.cpp GNU CPP version 1.28 /usr/local/lib/gcc-cc1 /tmp/cca05937.cpp -quiet -dumpbase try.c -Wall -version -o /tmp/cca05937.s GNU C version 1.28 (68k, MIT syntax) compiled by GNU C version 1.28. >>>> try.c:11: warning: control reaches end of non-void function as -mc68020 /tmp/cca05937.s -o try.o ld -d -e start /lib/crt0.o /lib/Mcrt1.o try.o /usr/local/lib/gcc-gnulib -lc daisy$ exit script done on Tue Sep 27 14:52:33 1988 -- ado@ncifcrf.gov ADO is a trademark of Ampex.