This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-in-cxx update
- From: Gabriel Dos Reis <dosreis at gmail dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, Ian Lance Taylor <iant at google dot com>, gcc at gcc dot gnu dot org
- Date: Fri, 1 May 2009 00:53:47 -0500
- Subject: Re: gcc-in-cxx update
- References: <m3hc0729jr.fsf@google.com> <Pine.LNX.4.64.0904291120200.23778@digraph.polyomino.org.uk> <6c33472e0904290513j44b3cafdl77b38de0cd2619cd@mail.gmail.com> <Pine.LNX.4.64.0904291321570.25453@digraph.polyomino.org.uk> <6c33472e0904290642j4b243ba3u4ec76b71b0c0e410@mail.gmail.com>
- Reply-to: gdr at integrable-solutions dot net
On Wed, Apr 29, 2009 at 8:42 AM, Manuel López-Ibáñez
<lopezibanez@gmail.com> wrote:
>>>
>>> BTW, why is this warned about?
>>
>> I imagine because in C it is not conventional to use "extern" when
>> defining something, only on a declaration that is not a definition.
>
> But may it lead to some confusion or subtle error? It seems overly
> pedantic to me if it is just a matter of style, because ?extern is
> implicit if missing,
>
> If one wants to use the same code in C and C++, then it is definitely
> a spurious warning in my opinion.
I do not understand your reasoning.
-- Gaby