This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/45977] "warning: 'i' initialized and declared 'extern'" is spurious
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Oct 2010 11:32:14 +0000
- Subject: [Bug c/45977] "warning: 'i' initialized and declared 'extern'" is spurious
- Auto-submitted: auto-generated
- References: <bug-45977-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45977
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2010-10-12 11:32:10 UTC ---
This is a coding style warning - the code is valid, but extremely
unidiomatic for C since "extern" is generally expected to mean that the
declaration is not providing a definition of the object. Following static
by extern, though valid, is also a C feature of doubtful value.