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

Robert Dell dellr@mac.com
Thu Jan 27 05:43:00 GMT 2011


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);



More information about the Gcc-help mailing list