summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/bbs.c7
-rw-r--r--pttbbs/mbbsd/bbslua.c4
-rw-r--r--pttbbs/mbbsd/board.c3
-rw-r--r--pttbbs/mbbsd/edit.c4
-rw-r--r--pttbbs/mbbsd/vote.c2
5 files changed, 4 insertions, 16 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 6270ea51..c3f6391b 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -2780,7 +2780,6 @@ recommend(int ent, fileheader_t * fhdr, const char *direct)
int type, maxlength;
boardheader_t *bp;
static time4_t lastrecommend = 0;
- static int lastrecommend_bid = -1;
static char lastrecommend_fname[FNLEN] = "";
int isGuest = (strcmp(cuser.userid, STR_GUEST) == EQUSTR);
int logIP = 0;
@@ -3106,7 +3105,6 @@ recommend(int ent, fileheader_t * fhdr, const char *direct)
return DIRCHANGED;
lastrecommend = now;
- lastrecommend_bid = currbid;
strlcpy(lastrecommend_fname, fhdr->filename, sizeof(lastrecommend_fname));
return FULLUPDATE;
}
@@ -4050,7 +4048,6 @@ good_post(int ent, fileheader_t * fhdr, const char *direct)
{
char genbuf[200];
char genbuf2[200];
- int delta = 0;
if ((currmode & MODE_DIGEST) || !(currmode & MODE_BOARD))
return DONOTHING;
@@ -4075,8 +4072,6 @@ good_post(int ent, fileheader_t * fhdr, const char *direct)
}
if (!(currmode & MODE_SELECT))
fhdr->multi.money -= 1000;
- else
- delta = -1000;
}
} else {
fileheader_t digest;
@@ -4115,8 +4110,6 @@ good_post(int ent, fileheader_t * fhdr, const char *direct)
}
if (!(currmode & MODE_SELECT))
fhdr->multi.money += 1000;
- else
- delta = 1000;
}
}
// TODO fix race condition here.
diff --git a/pttbbs/mbbsd/bbslua.c b/pttbbs/mbbsd/bbslua.c
index d746a231..713eaf21 100644
--- a/pttbbs/mbbsd/bbslua.c
+++ b/pttbbs/mbbsd/bbslua.c
@@ -1124,10 +1124,10 @@ static int
bbslua_detect_range(char **pbs, char **pbe, int *lineshift)
{
int szsig = strlen(BBSLUA_SIGNATURE);
- char *bs, *be, *ps, *pe;
+ char *be, *ps, *pe;
int line = 0;
- bs = ps = *pbs;
+ ps = *pbs;
be = pe = *pbe;
// find start
diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c
index 4be560da..ca016a78 100644
--- a/pttbbs/mbbsd/board.c
+++ b/pttbbs/mbbsd/board.c
@@ -786,7 +786,8 @@ b_config(void)
}
int
-b_quick_acl(int ent, fileheader_t *fhdr, const char *direct)
+b_quick_acl(int ent GCC_UNUSED, fileheader_t *fhdr,
+ const char *direct GCC_UNUSED)
{
#ifdef USE_NEW_BAN_SYSTEM
const boardheader_t *bp = getbcache(currbid);
diff --git a/pttbbs/mbbsd/edit.c b/pttbbs/mbbsd/edit.c
index 74112437..1a0b94f4 100644
--- a/pttbbs/mbbsd/edit.c
+++ b/pttbbs/mbbsd/edit.c
@@ -2520,7 +2520,6 @@ void syn_pmore_render(char *os, int len, char *buf)
// XXX buf should be same length as s.
char *s = (char *)mf_movieFrameHeader((unsigned char*)os, (unsigned char*)os + len);
char attr = 1;
- char iname = 0;
char prefix = 0;
memset(buf, 0, len);
@@ -2580,7 +2579,6 @@ void syn_pmore_render(char *os, int len, char *buf)
case 'I':
case 'G':
- iname = 0;
*buf++ = attr++;
prefix = 1;
while (len > 0 &&
@@ -2929,7 +2927,6 @@ display_textline_internal(textline_t *p, int i)
{
short tmp;
void (*output)(const char *, int) = edit_outs_attr;
- void (*output_n)(const char *, int, int)= edit_outs_attr_n;
int attr = EOATTR_NORMAL;
@@ -2944,7 +2941,6 @@ display_textline_internal(textline_t *p, int i)
if (curr_buf->ansimode) {
output = edit_ansi_outs;
- output_n = edit_ansi_outs_n;
}
tmp = curr_buf->currln - curr_buf->curr_window_line + i;
diff --git a/pttbbs/mbbsd/vote.c b/pttbbs/mbbsd/vote.c
index 383dc32c..8164d28c 100644
--- a/pttbbs/mbbsd/vote.c
+++ b/pttbbs/mbbsd/vote.c
@@ -756,7 +756,6 @@ user_vote_one(const vote_buffer_t *vbuf, const char *bname)
{
FILE *cfp;
char buf[STRLEN], redo;
- boardheader_t *fhp;
short count, tickets;
short curr_page, item_num, max_page;
char inbuf[80], choices[ITEM_PER_PAGE+1], vote[4], *chosen;
@@ -771,7 +770,6 @@ user_vote_one(const vote_buffer_t *vbuf, const char *bname)
if ((bid = getbnum(bname)) <= 0)
return 0;
assert(0<=bid-1 && bid-1<MAX_BOARD);
- fhp = getbcache(bid);
setbfile(buf, bname, vbuf->limited); /* Ptt */
if (dashf(buf)) {