On Fri, Feb 01, 2019 at 09:01:53AM -0500, Marek Polacek wrote: > On Fri, Feb 01, 2019 at 07:19:25AM -0600, Segher Boessenkool wrote: > > > Some people tend to consider that > > > if a warning is not part of -Wall, it might as well not exist. Obviously > > > I > > > disagree with that. > > > > If it is not part of -Wall and not of -W, and not special purpose, then it > > might as well not exist. > > There are warnings that *do* make sense, but have issues e.g. with macro > expansion, so will be outside -Wall/-Wextra unless that's fixed. E.g. > -Wlogical-op, -Wduplicated-conds, or a warning I posted to some PR > called -Wsame-arguments I think, etc.
Yes, we agree on that. I'm just saying such general-purpose warnings are not used much until they are part of -Wall or -W. Segher