www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/24/10:52:05

Sender: root AT delorie DOT com
Message-ID: <3749697E.E58AA0EA@inti.gov.ar>
Date: Mon, 24 May 1999 12:00:14 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
Organization: INTI
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.0.36 i686)
X-Accept-Language: es-AR, en, es
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: How do I fix this "warning"?
References: <TTye1DAtZaQ3Ewmi AT dunvegan1 DOT demon DOT co DOT uk> <9jZVJBAF3qR3Ewpp AT dunvegan1 DOT demon DOT co DOT uk>
Reply-To: djgpp AT delorie DOT com

Paul Richards wrote:

> Paul Richards writes,
> >Hi,
> >How do I fix the warning that I get from the compiler on this:
> > extern Ship* const pships=(new Ship[num_bots]);
> >The compiler gives me a warning saying "'pships' is initialised and
> >declared 'extern'".
> >
> >And why does that generate a warning when something like:
> > extern const double height=15.6;
> >doesn't?
>
> Well no-one seems to know, how do I get rid of it with a #pragma
> compiler directive thingy??

Looks like you used Borland products ;-) gcc doesn't have #pragma
extensions to do it.

SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
                    set AT ieee DOT org set-soft AT bigfoot DOT com
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019