egcs-2.91.66

Geoff Keating geoffk@cygnus.com
Wed May 3 16:12:00 GMT 2000


Martin Minkler <minkler@xmailer.informatik.uni-bonn.de> writes:

...
> to quote the wrong code: "x=(double *)calloc(dim*sizeof(double));"
> No error message or warning was displayed, ...

The second value is not optional.  Did you include <stdlib.h>?  Do you
use -Wmissing-prototypes?  (There are lots of other -W flags you might
consider.)
-- 
- Geoffrey Keating <geoffk@cygnus.com>


More information about the Gcc-bugs mailing list