diff --git a/Str.c b/Str.c index f6b7670..ac6446a 100644 --- a/Str.c +++ b/Str.c @@ -520,10 +520,8 @@ Sprintf(char *fmt, ...) case SP_PREC: if (IS_ALPHA(*f)) { /* conversion char. */ - double vd; int vi; char *vs; - void *vp; switch (*f) { case 'l': @@ -545,7 +543,7 @@ Sprintf(char *fmt, ...) case 'e': case 'G': case 'E': - vd = va_arg(ap, double); + va_arg(ap, double); len += (p > 0) ? p : 15; break; case 'c': @@ -558,11 +556,11 @@ Sprintf(char *fmt, ...) len += (p > vi) ? p : vi; break; case 'p': - vp = va_arg(ap, void *); + va_arg(ap, void *); len += 10; break; case 'n': - vp = va_arg(ap, void *); + va_arg(ap, void *); break; } status = SP_NORMAL; diff --git a/file.c b/file.c index 917a673..aeb3bf4 100644 --- a/file.c +++ b/file.c @@ -3803,7 +3803,7 @@ process_button(struct parsed_tag *tag) { Str tmp = NULL; char *p, *q, *r, *qq = ""; - int qlen, v; + int v; if (cur_form_id < 0) { char *s = ""; @@ -3847,7 +3847,6 @@ process_button(struct parsed_tag *tag) } if (q) { qq = html_quote(q); - qlen = strlen(q); } /* Strcat_charp(tmp, ""); */ @@ -7601,7 +7600,6 @@ loadGopherSearch0(URLFile *uf, ParsedURL *pu) { Str tmp; char *volatile p, *volatile q; - MySignalHandler(*volatile prevtrap) (SIGNAL_ARG) = NULL; #ifdef USE_M17N wc_ces doc_charset = DocumentCharset; #endif diff --git a/image.c b/image.c index a84d974..a06655e 100644 --- a/image.c +++ b/image.c @@ -551,13 +551,12 @@ loadImage(Buffer *buf, int flag) } #else /* !DONT_CALL_GC_AFTER_FORK */ if ((cache->pid = fork()) == 0) { - Buffer *b; /* * setup_child(TRUE, 0, -1); */ setup_child(FALSE, 0, -1); image_source = cache->file; - b = loadGeneralFile(cache->url, cache->current, NULL, 0, NULL); + loadGeneralFile(cache->url, cache->current, NULL, 0, NULL); /* TODO make sure removing this didn't break anything if (!b || !b->real_type || strncasecmp(b->real_type, "image/", 6)) unlink(cache->file); diff --git a/istream.c b/istream.c index 5e432c9..3078f01 100644 --- a/istream.c +++ b/istream.c @@ -418,7 +418,6 @@ ssl_check_cert_ident(X509 * x, char *hostname) if (alt) { int n; GENERAL_NAME *gn; - X509V3_EXT_METHOD *method; Str seen_dnsname = NULL; n = sk_GENERAL_NAME_num(alt); @@ -459,7 +458,7 @@ ssl_check_cert_ident(X509 * x, char *hostname) break; } } - method = X509V3_EXT_get(ex); + X509V3_EXT_get(ex); sk_GENERAL_NAME_free(alt); if (i < n) /* Found a match */ match_ident = TRUE; diff --git a/main.c b/main.c index d6106cb..0082068 100644 --- a/main.c +++ b/main.c @@ -1813,15 +1813,11 @@ static int dispincsrch(int ch, Str buf, Lineprop *prop) { static Buffer sbuf; - static Line *currentLine; - static int pos; char *str; int do_next_search = FALSE; if (ch == 0 && buf == NULL) { SAVE_BUFPOSITION(&sbuf); /* search starting point */ - currentLine = sbuf.currentLine; - pos = sbuf.pos; return -1; } @@ -1870,8 +1866,6 @@ dispincsrch(int ch, Str buf, Lineprop *prop) arrangeCursor(Currentbuf); srchcore(str, searchRoutine); arrangeCursor(Currentbuf); - currentLine = Currentbuf->currentLine; - pos = Currentbuf->pos; } displayBuffer(Currentbuf, B_FORCE_REDRAW); clear_mark(Currentbuf->currentLine); diff --git a/menu.c b/menu.c index b0c890d..3e81501 100644 --- a/menu.c +++ b/menu.c @@ -1100,7 +1100,7 @@ process_mMouse(int btn, int x, int y) { Menu *menu; int mselect, i; - static int press_btn = MOUSE_BTN_RESET, press_x, press_y; + static int press_btn = MOUSE_BTN_RESET, press_y; char c = ' '; menu = CurrentMenu; @@ -1169,7 +1169,6 @@ process_mMouse(int btn, int x, int y) if (btn != MOUSE_BTN4_DOWN_RXVT || press_btn == MOUSE_BTN_RESET) { press_btn = btn; - press_x = x; press_y = y; } else { diff --git a/news.c b/news.c index c0494b7..cd76c26 100644 --- a/news.c +++ b/news.c @@ -235,7 +235,6 @@ InputStream openNewsStream(ParsedURL *pu) { char *host, *mode, *group, *p; - Str tmp; int port, status; if (pu->file == NULL || *pu->file == '\0') @@ -262,7 +261,7 @@ openNewsStream(ParsedURL *pu) mode = NULL; if (current_news.host) { if (!strcmp(current_news.host, host) && current_news.port == port) { - tmp = news_command(¤t_news, "MODE", mode ? mode : "READER", + news_command(¤t_news, "MODE", mode ? mode : "READER", &status); if (status != 200 && status != 201) news_close(¤t_news);