[LLVMbugs] [Bug 3319] New: remove useless warning in printf checker
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Jan 12 13:13:40 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3319
Summary: remove useless warning in printf checker
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
clang emits a warning for this:
string-literal.c:5:14: warning: format string is not a string literal
(potentially insecure)
printf(i == 1 ? "yes" : "no");
^~~~~~~~~~~~~~~~~~~~~
the attached patch implements checking of ConditionalOperators, test case is
also attached
--
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