warning: conflicting types for built-in function bcopy
Paolo Carlini
pcarlini@unitus.it
Thu Oct 16 13:32:00 GMT 2003
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 ;)
More information about the Gcc
mailing list