Path: utzoo!mnetor!uunet!husc6!uwvax!oddjob!gargoyle!ihnp4!inuxc!iuvax!bobmon From: bobmon@iuvax.cs.indiana.edu ([bob, mon]) Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo C Ray Traced Beach Ball (See March '88 Byte) Message-ID: <6667@iuvax.cs.indiana.edu> Date: 6 Mar 88 03:45:11 GMT References: <1037@neoucom.UUCP> Reply-To: bobmon@iuvax.UUCP ([bob, mon]) Organization: Schizophrenics `R` Us Lines: 15 wtm@neoucom.UUCP (Bill Mayhew) writes: > >By the way, could some enlightend person explain why this program >generates the warning, "function should return a value in function >main". I can't find where. It makes the warning when I compile on >the AT&T 6300 and the Epson. The IBM PS/2 compiles the same code >without a peep. All machines are running TC 1.5. The message means that main itself should be returning a value, because it wasn't declared to be of type void. (So it defaults to type int.) I think this is ANSI-like behavior, and it's one of the warnings that can be turned on or off. I suppose that your three machines happen to have different turboc.cfg/tcconfig.tc (where did they get such mismatched names?) defaults. --Bob