Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Arthur David Olson
Thu, 29 Sep 1988 15:45
Gnu C compiler version 1.28's -Wall option is too dogmatic.
Author: Arthur David Olson
Date: Thu, 29 Sep 1988 15:45
Date: Thu, 29 Sep 1988 15:45
35 lines
1510 bytes
1510 bytes
(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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads