In message <20050526073335.GN596_at_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_at_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.Received on Thu May 26 2005 - 06:00:37 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:35 UTC