Subject: Re: A little program I wrote that core dumps. Should it?
To: RiscBSD Mailing List <port-arm32@NetBSD.ORG>
From: Peter Naulls <pnaulls@wave.co.nz>
List: port-arm32
Date: 06/17/1997 10:06:05
>
> A missing argument is an error, not just a warning. You should always
> include the appropriate headers (eg <stdio.h>) - that way you get
> prototypes and the compiler can catch things like this.
>
> (Or did you mean that -Wall causes gcc to moan about function calls that
> haven't been prototyped?)
That is indeed correct :) Which would have happened if he hadn't
included the header.
--
+-----------------------------------------+-----------------------------------+
| Peter Naulls | Acorn Risc PC 700 *ARM Powered* |
| pnaulls@wave.co.nz | Porting Java & Sather for Risc OS |
| http://lucy.cs.waikato.ac.nz/~pnaulls/ | Co-editor of Acorn archive list |
| Phone 64-7-856-4562 | Computer consultancy |
| The meaning of life: 3.5 | Web page design |
+-----------------------------------------+-----------------------------------+
Senders of unsolicited email agree to send me NZ$100 for wasting my time