Mail Archives: djgpp/1997/12/31/06:15:27
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
- Raw text -