From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: Puzzled:Allegro Code Date: 31 Dec 1997 10:55:41 GMT Organization: The National Capital FreeNet Lines: 22 Message-ID: <68d8bd$3pe@freenet-news.carleton.ca> References: <683mjc$gj8$1 AT nclient3-gui DOT server DOT virgin DOT net> <438_9712301100 AT softtech DOT st DOT net DOT au> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet3.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Actually, why doesn't it issue a warning? What you have is foo_end(){} which ought to cause compilation using -Wall to complain loudly and frequently, because the default return type is 'int' and there's no return statement. I would have expected to see something like this: foo.c:42: In function "int foo_end()": foo.c:42: Warning: No return statement, in a function not returning 'void'. Or perhaps cc1 is smart enough to recognize functions with empty bodies as dummy functions and leave well enough alone...perhaps unless you call them instead of merely using the name in pointer arithmetic? -- .*. Friendship, companionship, love, and having fun are the reasons for -() < life. All else; sex, money, fame, etc.; are just to get/express these. `*' Send any and all mail with attachments to the hotmail address please. Paul Derbyshire ao950 AT freenet DOT carleton DOT ca pgd73 AT hotmail DOT com