This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: Another glibc fixincl-hack


>  s/ calloc (1, 1)/ calloc ((size_t)1, (size_t)1)/

This really shouldn't be necessary; right above you have an #include of
stdlib.h, which should make a prototype available for calloc, which should
ensure the proper conversions occur with no need for explicit casts.  Could
you supply a minimal test case and preprocessed source for it?

zw


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