diff --git a/src/document/dom/renderer.c b/src/document/dom/renderer.c index 38cd0830..455a471b 100644 --- a/src/document/dom/renderer.c +++ b/src/document/dom/renderer.c @@ -1035,7 +1035,6 @@ render_dom_document(struct cache_entry *cached, struct document *document, unsigned char *string = struri(cached->uri); size_t length = strlen(string); struct dom_string uri = INIT_DOM_STRING(string, length); - enum dom_code code; convert_table = get_convert_table(head, document->options.cp, document->options.assume_cp, @@ -1074,7 +1073,7 @@ render_dom_document(struct cache_entry *cached, struct document *document, * However, it will be useful when we will be able to also * incrementally parse new data. This will require the parser to live * during the fetching of data. */ - code = parse_sgml(parser, buffer->source, buffer->length, 1); + parse_sgml(parser, buffer->source, buffer->length, 1); if (parser->root) { assert(parser->stack.depth == 1); diff --git a/src/dom/select.c b/src/dom/select.c index b7b7e599..3b17dcbd 100644 --- a/src/dom/select.c +++ b/src/dom/select.c @@ -961,15 +961,12 @@ dom_select_push_text(struct dom_stack *stack, struct dom_node *node, void *data) struct dom_stack_state *state = get_dom_stack_top(&select_data->stack); struct dom_select_node *selector = (void *) state->node; struct dom_select_node *text_sel = get_child_dom_select_node(selector, DOM_NODE_TEXT); - struct dom_string *text; WDBG("Text node: %d chars", node->string.length); if (!text_sel) return DOM_CODE_OK; - text = &text_sel->node.string; - switch (node->type) { case DOM_NODE_TEXT: case DOM_NODE_CDATA_SECTION: diff --git a/src/protocol/nntp/response.c b/src/protocol/nntp/response.c index 21327106..2448b066 100644 --- a/src/protocol/nntp/response.c +++ b/src/protocol/nntp/response.c @@ -273,15 +273,11 @@ static void add_header_to_string(struct string *str, unsigned char *header) { unsigned char *end; - int rfc2047 = 0; while ((end = strstr(header, "=?")) != NULL) { int encoding; - unsigned char charset_q[256]; unsigned char *cp, *sp; - rfc2047 = 1; - if (header != end) { add_html_to_string(str, header, end - header); header = end; @@ -297,8 +293,7 @@ add_header_to_string(struct string *str, unsigned char *header) break; for (sp = end; sp < cp; sp++) - charset_q[sp - end] = c_tolower(*sp); - charset_q[cp - end] = 0; + /* charset */; encoding = c_tolower(cp[1]); if (!encoding || cp[2] != '?') diff --git a/src/viewer/text/form.c b/src/viewer/text/form.c index 775e1d04..d928b959 100644 --- a/src/viewer/text/form.c +++ b/src/viewer/text/form.c @@ -409,7 +409,6 @@ draw_form_entry(struct terminal *term, struct document_view *doc_view, unsigned char *s; #ifdef CONFIG_UTF8 unsigned char *text, *end, *last_in_view; - int retried; #endif /* CONFIG_UTF8 */ int len; int i, x, y; @@ -446,7 +445,6 @@ draw_form_entry(struct terminal *term, struct document_view *doc_view, break; #ifdef CONFIG_UTF8 utf8: - retried = 0; retry_after_scroll: text = fs->value; @@ -556,7 +554,6 @@ drew_char: if (fs->vpos != ptr - fs->value) { fs->vpos = ptr - fs->value; - retried = 1; goto retry_after_scroll; } }