This is the mail archive of the gcc-help@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]

warning: incompatible implicit declaration of built-in function 'malloc'


can somebody please explain why I'm getting this warning?
warning: incompatible implicit declaration of built-in function 'malloc'

char *returnval = 0;
long outputBytes = 0;
... outputBytes gets changed and tested to ensure it's valid (non zero) ...

the offending line is here.
returnval = (char *) malloc(outputBytes + 2);


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