Kleine Anpassungen (warnings mit gcc)

This commit is contained in:
Enno Rehling 2004-05-04 19:34:35 +00:00
parent b18a812fa2
commit d97ae0f0e0
5 changed files with 7 additions and 7 deletions

View File

@ -419,7 +419,7 @@ creport_cleanup(void)
junkyard = 0; junkyard = 0;
} }
static int msgno; /*static int msgno; */
#define MTMAXHASH 1023 #define MTMAXHASH 1023

View File

@ -104,7 +104,7 @@ char *agename;
int seasons; int seasons;
static const char* static const char*
MailitPath() MailitPath(void)
{ {
static const char * value = NULL; static const char * value = NULL;
if (value==NULL) { if (value==NULL) {

View File

@ -54,7 +54,7 @@
#define TEACHNUMBER 10 #define TEACHNUMBER 10
static boolean static boolean
ExpensiveMigrants() ExpensiveMigrants(void)
{ {
int value = -1; int value = -1;
if (value<0) { if (value<0) {

View File

@ -68,7 +68,7 @@
static boolean static boolean
CheckOverload() CheckOverload(void)
{ {
static int value = -1; static int value = -1;
if (value<0) { if (value<0) {

View File

@ -1512,9 +1512,9 @@ addally(const faction * f, ally ** sfp, int aid, int state)
if (af!=NULL && af->alliance!=f->alliance) state &= ~ALLIES_ONLY;; if (af!=NULL && af->alliance!=f->alliance) state &= ~ALLIES_ONLY;;
# else # else
# endif # endif
if (af!=NULL && af->alliance!=f->alliance) return; if (af!=NULL && af->alliance!=f->alliance) return sfp;
#endif #endif
if (state==0) return; if (state==0) return sfp;
sf = calloc(1, sizeof(ally)); sf = calloc(1, sizeof(ally));
sf->faction = af; sf->faction = af;
@ -1523,7 +1523,7 @@ addally(const faction * f, ally ** sfp, int aid, int state)
while (*sfp) sfp=&(*sfp)->next; while (*sfp) sfp=&(*sfp)->next;
*sfp = sf; *sfp = sf;
return &sf; return &sf->next;
} }
/** Reads a faction from a file. /** Reads a faction from a file.