https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84510
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Uecker <uec...@gcc.gnu.org>: https://gcc.gnu.org/g:68783211f660a501dee203aec11dae99bf9808ba commit r14-3139-g68783211f660a501dee203aec11dae99bf9808ba Author: Martin Uecker <uec...@tugraz.at> Date: Thu Aug 10 10:39:41 2023 +0200 c: Support for -Wuseless-cast [PR84510] Add support for Wuseless-cast C (and ObjC). PR c/84510 gcc/c/: * c-typeck.cc (build_c_cast): Add warning. gcc/c-family/: * c.opt: Enable warning for C and ObjC. gcc/: * doc/invoke.texi: Update. gcc/testsuite/: * gcc.dg/Wuseless-cast.c: New test.