🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1726

Gnu C compiler version 1.28's -Wall option is too dogmatic.

#1726
From: Arthur David Olson
Date: Thu, 29 Sep 1988 15:45
35 lines
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.
Technical Details
Message-ID: <8809291545.AA11544@elsie.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!NCIFCRF.GOV!elsie!ado

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!NCIFCRF.GOV!elsie!ado
From: elsie!ado@NCIFCRF.GOV (Arthur David Olson)
Newsgroups: gnu.gcc.bug
Subject: Gnu C compiler version 1.28's -Wall option is too dogmatic.
Message-ID: <8809291545.AA11544@elsie.UUCP>
Date: 29 Sep 88 15:45:10 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 35