http://llvm.org/bugs/show_bug.cgi?id=11533
Bug #: 11533
Summary: clang is wrongly proposing assuming that strlcpy or
strlcat are part of the lib c
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Headers
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Under Debian, the following code:
int
main ()
{
(void) strlcat;
return 0;
}
will trigger the warning:
test.c:4:12: warning: implicitly declaring C library function 'strlcat' with
type 'unsigned long (char *, const char *, unsigned long)'
(void) strlcat;
^
test.c:4:12: note: please include the header <string.h> or explicitly provide a
declaration for 'strlcat'
1 warning generated.
while strlcat (or strlcpy) does not exist under Debian libc (version 2.13-21 on
my system).
This has been reported initially here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651454
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs