delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/05/16:34:20

Message-ID: <aCwlkLBnYnk2Ewy7@talula.demon.co.uk>
Date: Tue, 5 Jan 1999 20:29:27 +0000
To: Andris Pavenis <pavenis AT lanet DOT lv>
Cc: djgpp AT delorie DOT com
From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Subject: Re: Announce: Allegro 3.1
In-Reply-To: <B0000059866@stargate.astr.lu.lv>
MIME-Version: 1.0
X-Mailer: Turnpike (32) Version 3.05 <n4LQeHkuIZDKHuEabw2AtDS$Xl>
Reply-To: djgpp AT delorie DOT com

Andris Pavenis <pavenis AT lanet DOT lv> writes:
>Tried to build with egcs-1.1.1. There were following problems:
>-  huge number of warnings about missing initialisation of structure 
>members (more than 700). I had to remove -Werror to be able to compile 
>allegro at all.

Argh, this is bad news! I presume that the same thing would also happen
with Allegro 3.0, though? I can't think of any 3.1 changes that would
only recently have introduced this error...

I suppose I could try to fix the code to remove all such complaints, but
there are a lot of them: I use partial structure initialisations very
heavily, and I've never thought of this as being a risky thing to do, so
I sort of resent the idea that a compiler would complain about it :-)

Do you happen to know which warning option would turn off these
complaints? Also, if this isn't a standard gcc switch, is there any
reliable way to autodetect whether egcs is in use, so that the makefile
could do this automatically?

<complaint mode>

Ok, so this is directed at the people who maintain gcc rather than
anyone on this list, but it is something that really annoys me: why
can't they leave the warning options alone between compiler versions? By
all means add new warning switches that can be optionally enabled, but
for anyone who maintains and distributes large source packages, it is
very irritating when different compilers will complain about a different
range of things (some of which are really anal and IMHO not actual
errors at all). It is a particular nuisance when, as with some of the
PGCC complaints, the option to disable the warning in one compiler
version is itself not recognised by other versions...

</complaint>


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Without music to decorate it, time is just a bunch of boring production
deadlines or dates by which bills must be paid." - Frank Zappa

- Raw text -


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