summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-08 15:24:59 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-08 15:24:59 +0800
commit9b4d34a17c6061171456ae8e4b63dcd270f53091 (patch)
treea5d6fcc412bbe475ef411ccb9670b6f28b51d6e0 /mbbsd
parent227918f5114406b93524140fe2c22462cac9230c (diff)
downloadpttbbs-9b4d34a17c6061171456ae8e4b63dcd270f53091.tar
pttbbs-9b4d34a17c6061171456ae8e4b63dcd270f53091.tar.gz
pttbbs-9b4d34a17c6061171456ae8e4b63dcd270f53091.tar.bz2
pttbbs-9b4d34a17c6061171456ae8e4b63dcd270f53091.tar.lz
pttbbs-9b4d34a17c6061171456ae8e4b63dcd270f53091.tar.xz
pttbbs-9b4d34a17c6061171456ae8e4b63dcd270f53091.tar.zst
pttbbs-9b4d34a17c6061171456ae8e4b63dcd270f53091.zip
warning free
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1472 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c2
-rw-r--r--mbbsd/cal.c3
-rw-r--r--mbbsd/menu.c5
-rw-r--r--mbbsd/talk.c2
4 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 7da699e0..dace435c 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -423,7 +423,9 @@ do_unanonymous_post(char *fpath)
}
#ifdef NO_WATER_POST
+#ifndef DEBUG
static time_t last_post_time = 0;
+#endif
static time_t water_counts = 0;
#endif
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 5c2b7cdc..a443291d 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -446,6 +446,7 @@ p_sysinfo(void)
}
/* 小計算機 */
+#if 0
static void
ccount(float *a, float b, int cmode)
{
@@ -466,4 +467,4 @@ ccount(float *a, float b, int cmode)
break;
}
}
-
+#endif
diff --git a/mbbsd/menu.c b/mbbsd/menu.c
index f3b43aa9..ae006299 100644
--- a/mbbsd/menu.c
+++ b/mbbsd/menu.c
@@ -32,7 +32,10 @@ void
showtitle(char *title, char *mid)
{
char buf[40], numreg[50];
- int nreg, spc = 0, pad, bid;
+#ifndef DEBUG
+ int nreg;
+#endif
+ int spc = 0, pad, bid;
static char lastboard[16] = {0};
spc = strlen(mid);
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index df570f38..f44b69b9 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -111,7 +111,7 @@ modestring(userinfo_t * uentp, int simple)
{"", "一", "兩", "三", "四", "五", "六", "七",
"八", "九"};
snprintf(modestr, sizeof(modestr),
- "中%s顆水球", cnum[uentp->msgcount]);
+ "中%s顆水球", cnum[(int)(uentp->msgcount)]);
} else
snprintf(modestr, sizeof(modestr), "不行了 @_@");
else if (!mode && *uentp->chatid == 3)