[LLVMbugs] [Bug 2780] New: llvm-g++ prints (bad?) warning not present in g++ 4.2
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Sep 8 02:29:46 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2780
Summary: llvm-g++ prints (bad?) warning not present in g++ 4.2
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-g++
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu, nlewycky at google.com
Given the code
----------------------------------------------------------
extern int printf (__const char *__restrict __format, ...);
void g(const char *s) {
printf(s);
}
-----------------------------------------------------------
llvm-g++ prints
--------------------------------------------------------------
testcase.ii: In function 'void g(const char*)':
testcase.ii:3: warning: format not a string literal and no format arguments
-----------------------------------------------------------
g++ 4.2 prints no warnings with and without -Wall
--
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