From 40ef16c53f28fd2d608306dd7a5dddfff93017bf Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 20 Nov 2005 14:50:15 +0000 Subject: [PATCH] removed warnings --- src/common/gamecode/report.c | 12 ------------ src/common/gamecode/xmlreport.c | 2 +- src/common/kernel/region.c | 3 ++- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/common/gamecode/report.c b/src/common/gamecode/report.c index 0cf558f79..50976c7d2 100644 --- a/src/common/gamecode/report.c +++ b/src/common/gamecode/report.c @@ -214,18 +214,6 @@ gamedate2(const struct locale * lang) return buf; } -static char * -gamedate_short(const struct locale * lang) -{ - static char buf[256]; - gamedate gd; - - get_gamedate(turn, &gd); - sprintf(buf, "%d/%s/%d", gd.week+1, LOC(lang, monthnames[gd.month]), gd.year); - - return buf; -} - static void rpsnr(FILE * F, const char * s, int offset) { diff --git a/src/common/gamecode/xmlreport.c b/src/common/gamecode/xmlreport.c index c38bcfb03..ba7db7d3f 100644 --- a/src/common/gamecode/xmlreport.c +++ b/src/common/gamecode/xmlreport.c @@ -88,7 +88,7 @@ xml_s(const char * str) char * outbuf = buffer; size_t inbytes = strlen(str)+1; size_t outbytes = sizeof(buffer); - iconv(utf8, (const char**)&inbuf, &inbytes, (char**)&outbuf, &outbytes); + iconv(utf8, (char**)&inbuf, &inbytes, (char**)&outbuf, &outbytes); return (xmlChar*)buffer; } diff --git a/src/common/kernel/region.c b/src/common/kernel/region.c index 5b1e36eb2..1775f9658 100644 --- a/src/common/kernel/region.c +++ b/src/common/kernel/region.c @@ -1095,6 +1095,7 @@ region_setowner(struct region * r, struct faction * owner) #ifdef REGIONOWNERS r->owner = owner; #else - unused(r, owner); + unused(r); + unused(owner); #endif }