From 04029eef3665321c57e9fc7039093817cc38a01e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 8 Jun 2008 00:10:09 +0000 Subject: [PATCH] compile fixes --- src/common/gamecode/creport.c | 16 ---------------- src/common/gamecode/xmlreport.c | 2 ++ 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/common/gamecode/creport.c b/src/common/gamecode/creport.c index bbc14c21f..e404cf8b9 100644 --- a/src/common/gamecode/creport.c +++ b/src/common/gamecode/creport.c @@ -1008,22 +1008,6 @@ cr_reportspell(FILE * F, spell *sp, const struct locale * lang) } } -static unsigned int -encode_region(const faction * f, const region * r) { - unsigned int id; - char *cp, c; - /* obfuscation */ - assert(sizeof(int)==sizeof(char)*4); - id = (((((r->x ^ f->no) % 1024) << 20) | ((r->y ^ f->no) % 1024))); - cp = (char*)&id; - c = cp[0]; - cp[0] = cp[2]; - cp[2] = cp[1]; - cp[1] = cp[3]; - cp[3] = c; - return id; -} - static char * cr_output_resource(char * buf, const char * name, const struct locale * loc, int amount, int level) { diff --git a/src/common/gamecode/xmlreport.c b/src/common/gamecode/xmlreport.c index 083dcbf10..97dff0537 100644 --- a/src/common/gamecode/xmlreport.c +++ b/src/common/gamecode/xmlreport.c @@ -84,6 +84,7 @@ typedef struct xml_context { xmlNsPtr ns_xml; } xml_context; +#if 0 static const xmlChar * xml_s(const char * str) { @@ -97,6 +98,7 @@ xml_s(const char * str) buffer[outbytes] = 0; return buffer; } +#endif static const xmlChar * xml_i(double number)