gcc 1.35 conflicting types message?

Arthur David Olson ado at elsie.UUCP
Fri May 5 12:31:28 AEST 1989


The GNU C Compiler, version 1.35, now generates a "conflicting types" message
and refuses to compile when confronted with code such as. . .

	Script started on Thu May  4 22:03:53 1989
	elsie$ cat try.c
	extern int	whatever();
	extern int	whatever(char * format, ...);
	elsie$ /usr/local/bin/gcc -v try.c
	gcc version 1.35
	 /usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 try.c /tmp/cca15784.cpp
	GNU CPP version 1.35
	 /usr/local/lib/gcc-cc1 /tmp/cca15784.cpp -quiet -dumpbase try.c -version -o /tmp/cca15784.s
	GNU C version 1.35 (68k, MIT syntax) compiled by GNU C version 1.35.
	try.c:2: conflicting types for `whatever'
	try.c:2: A parameter list with an ellipsis can't match
	try.c:2: an empty parameter name list declaration.
	try.c:1: previous declaration of `whatever'
	elsie$ exit

	script done on Thu May  4 22:04:12 1989

If you can tell me wheter "try.c" above is [d[p]]ANS-compliant or not,
I'd appreciate hearing from you by electronic mail.  I'd also appreciate
opinions on whether the code should be accepted even if it isn't compliant,
so that newly written header files can contain prototypes without introducing
the possibility of clashes with old-style header files.
-- 
			Space:  Canada, 0 tries ever.
	Arthur David Olson    ado at ncifcrf.gov    ADO is a trademark of Ampex.



More information about the Comp.std.c mailing list