https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69818
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |87403 Summary|warn for C++ functional |warn for C++ functional |cast expression on pointer |cast expression on pointer |or reference |or reference (i.e. add | |-Wfunctional-cast) --- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Eric Gallager from comment #5) > Personally I'd prefer a separate option, -Wfunctional-cast or something, as > functional casts and "old-style" casts are different things. I generally > avoid -Wold-style-cast currently, as it is often pretty noisy in code that > started off written as C and was then converted to C++, but I'd consider > using a separate -Wfunctional-cast, as that would catch just things added > post-C++-conversion, which means it would probably be significantly less > noisy, and easier to fix. Plus putting this under a new -Wfunctional-cast flag lets this block the new-warning meta-bug. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87403 [Bug 87403] [Meta-bug] Issues that suggest a new warning