http://llvm.org/bugs/show_bug.cgi?id=18905
Bug ID: 18905
Summary: No -Wformat warning on unterminated format string
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
$: cat s2.c
#include <stdio.h>
int main() {
const char s[1] = "s";
printf(s);
return 0;
}
$: clang-trunk -Weverything s2.c
$: gcc-trunk -Wformat s2.c
s2.c: In function ‘main’:
s2.c:4:3: warning: unterminated format string [-Wformat=]
printf(s);
^
--
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