<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 9, 2015 at 3:19 PM, Edward Diener via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">According to the gcc documentation if -Wall is used on the command line it can be overriddent by individual -Wno-xxx warnings which turn off individual warnings. But in clang if -Wall is used on the command line individual -Wno-xxx warnings are ignored.<br></blockquote><div><br></div><div>That's not true. For clang, warning flags are processed left-to-right, so -Wno-xxx flags appearing after -Wall turn off individual flags. (The way clang's warning groups work in general is as if -Wgroup expands to individual -W flags for each warning in the group; -Wall is just a normal warning group containing a certain set of warnings.)</div><div><br></div><div>Does GCC really allow -Wno-xxx flags that /precede/ -Wall on the command line to override -Wall? That seems broken.</div></div></div></div>