Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] the compiler is our friend
Home

[Freeciv-Dev] the compiler is our friend

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] the compiler is our friend
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Wed, 17 May 2000 17:27:20 -0400

I keep seeing patches and even CVS commits that don't compile cleanly.

It's easy to use the compiler to inform you of the inevitable typos and
small mistakes to which we are all susceptible.  Using gcc, compile with
the following flags to catch many problems:

    -Wall -Wpointer-arith -Wcast-align
    -Wmissing-prototypes -Wmissing-declarations -Werror

(These are the flags I use for Freeciv.)

You can slip compiler flags in via make, by doing:

    make CPPFLAGS='<flags you want to add>'

jjm




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] the compiler is our friend, Jeff Mallatt <=