Date: Thu, 26 May 2005 10:00:20 +0200 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Stefan Farfeleder <stefan@fafoe.narf.at> Cc: Craig Rodrigues <rodrigc@crodrigues.org>, freebsd-current@freebsd.org Subject: Re: [GCC 4.0 PATCH] devfs_vnops.c Message-ID: <4395.1117094420@critter.freebsd.dk> In-Reply-To: Your message of "Thu, 26 May 2005 09:33:39 %2B0200." <20050526073335.GN596@wombat.fafoe.narf.at>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20050526073335.GN596@wombat.fafoe.narf.at>, Stefan Farfeleder write s: >> >So, if you have: >> > >> >extern struct foo bar; >> >static struct foo bar = { ..... }; >> >> Well, the reason is it like that is that you cannot forward >> declare a static (at least in the -current GCC) >> >> static struct foo bar; >> [...] >> static struct foo bare = { ... }; >> >> This might be a bug in C. > >Do you mean the 'warning: redundant redeclaration of ...' warning caused >by -Wredundant-decls? Can't remember the specific warning, sorry. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4395.1117094420>