From owner-freebsd-current@FreeBSD.ORG Thu May 26 07:33:46 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3A2216A422 for ; Thu, 26 May 2005 07:33:45 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from fafoe.narf.at (chello213047085026.6.14.vie.surfer.at [213.47.85.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B70643D1D for ; Thu, 26 May 2005 07:33:44 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from wombat.fafoe.narf.at (wombat.fafoe.narf.at [192.168.1.42]) by fafoe.narf.at (Postfix) with ESMTP id F0E0E4180; Thu, 26 May 2005 09:33:40 +0200 (CEST) Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id 8E25215D; Thu, 26 May 2005 09:33:39 +0200 (CEST) Date: Thu, 26 May 2005 09:33:39 +0200 From: Stefan Farfeleder To: Poul-Henning Kamp Message-ID: <20050526073335.GN596@wombat.fafoe.narf.at> Mail-Followup-To: Poul-Henning Kamp , Craig Rodrigues , freebsd-current@freebsd.org References: <20050526044824.GA81201@crodrigues.org> <3631.1117085173@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3631.1117085173@critter.freebsd.dk> User-Agent: Mutt/1.5.9i Cc: Craig Rodrigues , freebsd-current@freebsd.org Subject: Re: [GCC 4.0 PATCH] devfs_vnops.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2005 07:33:46 -0000 On Thu, May 26, 2005 at 07:26:13AM +0200, Poul-Henning Kamp wrote: > In message <20050526044824.GA81201@crodrigues.org>, Craig Rodrigues writes: > > >"If, within a translation unit, the same identifier appears with both > >internal and external linkage, the behavior is undefined." > > > >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? Stefan