This is the mail archive of the gcc@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: warning: conflicting types for built-in function bcopy


Sean Estabrooks wrote:

Hi folks,

I'm wondering why compiling this:

bcopy(char x) { }
main() { }


leads to this warning:
1: warning: conflicting types for built-in function `bcopy'

Weird, I cannot reproduce this:

paolo:~> gcc -Wall -c war.c
war.c:2: warning: return type defaults to `int'
war.c: In function `bcopy':
war.c:2: warning: control reaches end of non-void function
war.c: At top level:
war.c:4: warning: return type defaults to `int'
war.c: In function `main':
war.c:4: warning: control reaches end of non-void function

May have to do with builtins, however, try -fno-builtin or
-fno-builtin-bcopy, but I don't think bcopy is actually a builtin!

Paolo.

P.S. This kind of question properly belongs to gcc-help ;)


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