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


> No error message or warning was displayed

Thanks for your bug report. You did not provide full source code, so
it is hard to tell what was goind on. However, compiling

#include <stdlib.h>

int main()
{
  int dim=10;
  double *x=(double *)calloc(dim*sizeof(double));
}

with egcs 2.91.66, I get

a.c: In function `main':
a.c:6: too few arguments to function `calloc'

This is not just a warning; this is an error. How could you miss it?

Regards,
Martin

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