This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-2.91.66


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]