[civhr@civ.hw.ac.uk] libc/1178: Multiple declaration of strnlen
Andreas Jaeger
aj@arthur.rhein-neckar.de
Fri Jun 25 07:31:00 GMT 1999
This small program:
#include <string.h>
int
main (void)
{
}
shows the problem reported in the appended bug report if you compile
with:
gcc -D_GNU_SOURCE -O2 -Wall -W -Wredundant-decls -c strlen-test.c
In file included from /usr/include/string.h:346,
from strlen-test.c:1:
/usr/include/bits/string2.h:946: warning: redundant redeclaration of `strnlen' in same scope
/usr/include/string.h:212: warning: previous declaration of `strnlen'
What shall we do?
Andreas
More information about the Libc-alpha
mailing list