[LLVMbugs] [Bug 20820] New: false warning implicitly declaring library function 'strlcpy'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 30 20:56:43 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: pavel.stehule at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140831/99c27ec9/attachment.html>


More information about the llvm-bugs mailing list