www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/26/22:38:56

Date: Wed, 26 Jun 1996 22:34:51 -0400
From: dj (DJ Delorie)
Message-Id: <199606270234.WAA25505@delorie.com>
To: j DOT aldrich6 AT genie DOT com
CC: djgpp AT delorie DOT com
In-reply-to: <199606270225.AA264472333@relay1.geis.com> (j.aldrich6@genie.com)
Subject: Re: Does DJGPP conform to ANSI

> Another thing that I wanted to mention - as I understand it there is a
> significant difference between "main()", and "main(void)".  They are

In fact, djgpp's libc makefiles tell gcc that the first case is an
*error*.  Not only must your functions be fully declared, but you must
have provided a full prototype declaration before you can either use
or define a function.  The net result is that nothing is usable unless
it's in the header files.

Check out the gcc options we use:

	-Wall
	-Werror
	-Wbad-function-cast
	-Wcast-qual
	-Wmissing-declarations
	-Wmissing-prototypes
	-Wpointer-arith
	-Wshadow
	-Wstrict-prototypes
	-Wtraditional
	-Wwrite-strings

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019