http://llvm.org/bugs/show_bug.cgi?id=3816
Summary: duplicate notes should be suppressed
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Duplicate notes can be very noisy and should be suppressed:
--
ddun...@frank:tmp$ cat t.c
#include <stdio.h>
extern const char *g0(const char*);
#define _ g0
void f0(void) {
printf(_("hello"));
printf(_("cruel"));
printf(_("world"));
}
ddun...@frank:tmp$ clang t.c
t.c:5:10: warning: format string is not a string literal (potentially insecure)
printf(_("hello"));
^~~~~~~~~~
t.c:3:11: note: instantiated from:
#define _ g0
^~
t.c:6:10: warning: format string is not a string literal (potentially insecure)
printf(_("cruel"));
^~~~~~~~~~
t.c:3:11: note: instantiated from:
#define _ g0
^~
t.c:7:10: warning: format string is not a string literal (potentially insecure)
printf(_("world"));
^~~~~~~~~~
t.c:3:11: note: instantiated from:
#define _ g0
^~
3 diagnostics generated.
--
--
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