compilation fixes gcc

This commit is contained in:
Enno Rehling 2009-07-04 11:51:12 +00:00
parent 2d2563f521
commit b571a2007c
4 changed files with 1 additions and 5 deletions

View File

@ -1220,7 +1220,6 @@ cr_output_region(FILE * F, report_context * ctx, seen_region * sr)
region_list *rl2 = rl;
while(rl2) {
region * r = rl2->data;
plane * pl = rplane(r);
int nx = region_x(r, f), ny = region_y(r, f);
fprintf(F, "SCHEMEN %d %d\n", nx, ny);
fprintf(F, "\"%s\";Name\n", rname(r, f->locale));

View File

@ -874,7 +874,6 @@ static int
autoalliance(const plane * pl, const faction * sf, const faction * f2)
{
static boolean init = false;
static int automode;
if (!init) {
init_gms();
init = true;
@ -1186,7 +1185,7 @@ int
count_all(const faction * f)
{
#ifndef NDEBUG
int n = 0, nunits = 0;
int n = 0;
unit *u;
for (u=f->units;u;u=u->nextF) {
if (playerrace(u->race)) {

View File

@ -118,7 +118,6 @@ write_regionname(const region * r, const faction * f, char * buffer, size_t size
if (r==NULL) {
strcpy(buf, "(null)");
} else {
plane * pl = rplane(r);
int nx = region_x(r, f), ny = region_y(r, f);
snprintf(buf, size, "%s (%d,%d)", rname(r, lang), nx, ny);
}

View File

@ -484,7 +484,6 @@ prepare_starting_region(region * r)
int
autoseed(newfaction ** players, int nsize, int max_agediff)
{
int x = 0, y = 0;
region * r = NULL;
region_list * rlist = NULL;
int rsize = 0, tsize = 0;