public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/65213] New: Extend -Wmissing-declarations to variables
@ 2015-02-25 20:10 eugene.zelenko at gmail dot com
  2020-06-07 23:39 ` [Bug c/65213] Extend -Wmissing-declarations to variables [i.e. add -Wmissing-variable-declarations] egallager at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: eugene.zelenko at gmail dot com @ 2015-02-25 20:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65213

            Bug ID: 65213
           Summary: Extend -Wmissing-declarations to variables
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eugene.zelenko at gmail dot com

Will be good idea to -Wmissing-declarations to variables. Global variable
should have extern declaration in header file, otherwise variable should be
static.

Clang detect such situations with -Wmissing-variable-declarations.

Same should be done for C++.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-08 15:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-25 20:10 [Bug c/65213] New: Extend -Wmissing-declarations to variables eugene.zelenko at gmail dot com
2020-06-07 23:39 ` [Bug c/65213] Extend -Wmissing-declarations to variables [i.e. add -Wmissing-variable-declarations] egallager at gcc dot gnu.org
2023-06-14  0:41 ` egallager at gcc dot gnu.org
2023-07-31 19:04 ` cvs-commit at gcc dot gnu.org
2023-07-31 19:06 ` jsm28 at gcc dot gnu.org
2023-08-08 15:42 ` ndesaulniers at google dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).