|
-
GCC Warnings for built-in functions (C)
I don't know if this happens with other compilers (all I use is GCC), but it seems kinda strange to me. I just wrote a function (strend()). Inside that function, I called my own version of strlen(). I did not #include <string.h> anywhere in the program, so it wouldn't be a problem. (It wouldn't be a problem even if I did include <string.h>, would it?) Anyway, when I compile it, GCC gives me this warning:
warning: conflicting types for built-in function 'strlen'
Is this normal? Why would this happen? Oh, and I put main(), strend(), and strlen() all in their own separate files, if that makes a difference.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|