[LLVMbugs] [Bug 3816] New: duplicate notes should be suppressed

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Mar 15 04:54:24 PDT 2009


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: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: clattner at apple.com, llvmbugs at cs.uiuc.edu


Duplicate notes can be very noisy and should be suppressed:
--
ddunbar at 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"));
}
ddunbar at 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.



More information about the llvm-bugs mailing list