https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842
--- Comment #10 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #6) > (In reply to n.deshm...@samsung.com from comment #5) > > The code is part of a third party library hence adding a explicit cast is > > not possible. > > Well that third party library is NOT valid C++ code ... The whole point of > the warning (and the reason why -Wno-pedantic does not turn off the warning) > is point that out and more over point out the code should be fixed. That is not a reason that I have ever heard for not assigning a flag to a warning before. I was under the impression that the principle of "All warnings should have a flag assigned to them" held regardless of how invalid the code they warn about is, or how badly said code should be fixed. Again, see bug 44209.