Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2002:
[Freeciv-Dev] Re: A rouge client from the trenches
Home

[Freeciv-Dev] Re: A rouge client from the trenches

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: Arnstein Lindgard <arnstein.lindgard@xxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: A rouge client from the trenches
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Fri, 19 Jul 2002 09:04:36 +0200

On Thu, Jul 18, 2002 at 08:49:12PM -0400, Jason Short wrote:
> Mike Kaufman wrote:
> > On Thu, Jul 18, 2002 at 10:44:47PM +0200, Arnstein Lindgard wrote:
> 
> > yes. it's a sin. you need to declare at beginning of scope, so
> > 
> >   if(foo) {
> >     int a;
> >   }
> > 
> > is ok too.
> > 
> > 3.0.3 has cut me slack as well on occasion...
> 
> I'll bet there's an option you can give gcc to give warnings about 
> potential problems.  I don't know what it would be under gcc3, though.

try:
  $ gcc -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes 
-Wmissing-declarations -Werror ...

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  "Real Users find the one combination of bizarre
   input values that shuts down the system for days."


[Prev in Thread] Current Thread [Next in Thread]