Mail Archives: djgpp/2002/03/18/06:15:07
dshnv <dshnv AT www DOT com> wrote:
> I use my own LIBC instead of djgpp's so I understand why I get these
> warnings, but is there some way to turn these
> built-in-conflict-warnings off?
You should probably start by making your own LIBC use correct,
standard-compliant argument and return types for standardized
functions. I.e. if your memcpy has any other signature than
void *memcpy(void *dest, const void *src, size_t n);
then that is a serious bug in your libc. A function that doesn't
fulfill the definition of the ANSI C Standard about memcpy has no
right to call itself memcpy.
> Maybe some sort of `--no-builtin' option?
Quoting the GCC docs, node "C Dialect Options":
`-fno-builtin'
Don't recognize builtin functions that do not begin with two
leading underscores. Currently, the functions affected include
`abort', `abs', `alloca', `cos', `exit', `fabs', `ffs', `labs',
`memcmp', `memcpy', `sin', `sqrt', `strcmp', `strcpy', and
`strlen'.
But you really shouldn't have to use this flag.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -