Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] (PR#12539) patch for GCC 4
Home

[Freeciv-Dev] (PR#12539) patch for GCC 4

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12539) patch for GCC 4
From: "Vladimir Kondratiev" <vladimir.kondratiev@xxxxxxxxx>
Date: Fri, 18 Mar 2005 06:29:49 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12539 >

Attached is patch to compile 2.0 beta8 (with GCC 4, I have no 3.x
versions handy to check).
GCC 4 don't like definition of array of unknown structures.

diff -u -x '*.o' /tmp/t/freeciv-2.0.0-beta8/common/map.h common/map.h
--- /tmp/t/freeciv-2.0.0-beta8/common/map.h     2005-02-07 18:47:35.000000000 
+0200
+++ common/map.h        2005-03-18 14:57:43.000000000 +0200
@@ -136,6 +136,7 @@
 
   char *helptext;
 };
+extern struct tile_type tile_types[MAX_NUM_TERRAINS];
 
 /* The direction8 gives the 8 possible directions.  These may be used in
  * a number of ways, for instance as an index into the DIR_DX/DIR_DY
diff -u -x '*.o' /tmp/t/freeciv-2.0.0-beta8/common/terrain.h common/terrain.h
--- /tmp/t/freeciv-2.0.0-beta8/common/terrain.h 2004-09-29 04:24:23.000000000 
+0200
+++ common/terrain.h    2005-03-18 14:45:48.000000000 +0200
@@ -96,8 +96,6 @@
 
 BV_DEFINE(bv_terrain_flags, TER_MAX);
 
-extern struct tile_type tile_types[MAX_NUM_TERRAINS];
-
 /* General accessor functions. */
 struct tile_type *get_tile_type(Terrain_type_id type);
 Terrain_type_id get_terrain_by_name(const char * name);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12539) patch for GCC 4, Vladimir Kondratiev <=