File lincity-gcc-warning.patch of Package lincity
--- lintypes.c
+++ lintypes.c
@@ -3,6 +3,7 @@
* This file is part of lincity.
* Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2001.
* ---------------------------------------------------------------------- */
+#include <string.h>
#include "lcconfig.h"
#include "lin-city.h"
#include "engglobs.h"
@@ -11,6 +12,7 @@
#include "lintypes.h"
#include "lcintl.h"
+
struct TYPE main_types[NUM_OF_TYPES];
struct GROUP main_groups[NUM_OF_GROUPS] =
--- stats.c
+++ stats.c
@@ -174,8 +174,7 @@
break;
default: {
- printf("Default in inventory(%d,%d): got %d\n"),
- x, y, get_group_of_type(MP_TYPE(x,y));
+ printf("Default in inventory(%d,%d): got %d\n", x, y, get_group_of_type(MP_TYPE(x,y)));
break;
}