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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected], [EMAIL PROTECTED]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs