[LLVMbugs] [Bug 22624] Using -Wno-unused-local-typedef does not disable all warnings

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 18 13:05:39 PST 2015


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

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Reid Kleckner <rnk at google.com> ---
Actually, after looking closely, this is actually working as intended. Your
command line looks like this:

clang -c -Wno-.... -Wno... -Wall foo.cpp

The problem is that adding -Wall after -Wno-... re-enables everything in -Wall.
If you reorder the command line to put -Wno after -Wall, everything should
work. The behavior of "last flag wins" is intended.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150218/3bdd17f6/attachment.html>


More information about the llvm-bugs mailing list