[LLVMbugs] [Bug 3030] New: format not a string literal and no format arguments

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Nov 8 23:30:26 PST 2008


http://llvm.org/bugs/show_bug.cgi?id=3030

           Summary: format not a string literal and no format arguments
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu


I'm seeing this warning:

  $ cat test.c
  #include <stdio.h>

  void f(const char *buf) {
    printf(buf);
  }
  $ llvm-gcc test.c -c
  test.c: In function ‘f’:
  test.c:4: warning: format not a string literal and no format arguments
  $ gcc test.c -c
  $ llvm-gcc test.c -c -Wno-format
  $ 

Please disable that warning by default on non-Darwin platforms.


-- 
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.



More information about the llvm-bugs mailing list