https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65213
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Joseph Myers <js...@gcc.gnu.org>: https://gcc.gnu.org/g:ffc74822468a39324722eef4c4412ea3224ca976 commit r14-2888-gffc74822468a39324722eef4c4412ea3224ca976 Author: Hamza Mahfooz <some...@effective-light.com> Date: Mon Jul 31 19:03:47 2023 +0000 c: add -Wmissing-variable-declarations [PR65213] Resolves: PR c/65213 - Extend -Wmissing-declarations to variables [i.e. add -Wmissing-variable-declarations] gcc/c-family/ChangeLog: PR c/65213 * c.opt (-Wmissing-variable-declarations): New option. gcc/c/ChangeLog: PR c/65213 * c-decl.cc (start_decl): Handle -Wmissing-variable-declarations. gcc/ChangeLog: PR c/65213 * doc/invoke.texi (-Wmissing-variable-declarations): Document new option. gcc/testsuite/ChangeLog: PR c/65213 * gcc.dg/Wmissing-variable-declarations.c: New test. Signed-off-by: Hamza Mahfooz <some...@effective-light.com>