http://llvm.org/bugs/show_bug.cgi?id=20820
Bug ID: 20820
Summary: false warning implicitly declaring library function
'strlcpy'
Product: clang
Version: 3.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
clang -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
-Wformat-security -fno-strict-aliasing -fwrapv -g -DFRONTEND
-I../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o exec.o exec.c
exec.c:280:2: warning: implicitly declaring library function 'strlcpy' with
type 'unsigned long
(char *, const char *, unsigned long)'
strlcpy(link_buf, fname, sizeof(link_buf));
^
exec.c:280:2: note: please include the header <string.h> or explicitly provide
a declaration for 'strlcpy'
1 warning generated.
It can be tested on Postgres master sources.
--
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