[LLVMbugs] [Bug 9701] New: Clang should err, not warn, on unrecognized warning options

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 13 09:40:15 PDT 2011


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

           Summary: Clang should err, not warn, on unrecognized warning
                    options
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: daniel at zuster.org
        ReportedBy: cdavis at mymail.mines.edu
                CC: llvmbugs at cs.uiuc.edu, austinenglish at gmail.com


Many open source projects, including Wine, pass various warning flags to the
compiler to see if they're supported, expecting the compiler to return a
non-zero status if they aren't.

Clang, on the other hand, only warns when it receives an unrecognized warning
option. The warning is very annoying, particularly when compiling large numbers
of source files, because it clutters the output. We believe the Clang should
err (and thus return a non-zero status) instead of warn on warning options that
aren't recognized.

We wanted to use -Werror, but Wine's maintainer told us to file a bug here
instead.

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