[LLVMbugs] [Bug 8639] New: Should be more conservative while issuing an unused argument warning

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 17 07:37:45 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=8639

           Summary: Should be more conservative while issuing an unused
                    argument warning
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ismail at namtrac.org
                CC: llvmbugs at cs.uiuc.edu


The simplest testcase coming from MPlayer build system:

[~]> clang -march=core2 -march=core2 -c test.c 
clang: warning: argument unused during compilation: '-march=core2'

There is no need to warn about unused argument here since the arguments are
duplicates. espindola fixed a similar case with optimization flags in r119498
but we need a more generic way of handling this.

-- 
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