diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2011-07-15 09:56:19 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2011-07-15 09:56:19 -0400 |
commit | 5b311cb1ef29825290273ede14c7e90839b80985 (patch) | |
tree | c162cd6de7bc27fec12e3242c33022f07a7dd8c0 /src/table.cc | |
parent | 5f46adec1f6ecab7b68f3a71efbd7abe60ca917e (diff) |
Eliminated a pack of compiler warnings (gcc-4.6.1 amd64)
Diffstat (limited to 'src/table.cc')
-rw-r--r-- | src/table.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/table.cc b/src/table.cc index 58cdf22e..d48a0c45 100644 --- a/src/table.cc +++ b/src/table.cc @@ -151,7 +151,6 @@ void Html_tag_open_tr(DilloHtml *html, const char *tag, int tagsize) { const char *attrbuf; int32_t bgcolor = -1; - bool new_style = false; html->styleEngine->inheritNonCssHints (); @@ -183,10 +182,8 @@ void Html_tag_open_tr(DilloHtml *html, const char *tag, int tagsize) if (bgcolor != -1) { html->styleEngine->setNonCssHint(CSS_PROPERTY_BACKGROUND_COLOR, CSS_TYPE_COLOR, bgcolor); - new_style = true; } - if (a_Html_tag_set_valign_attr (html, tag, tagsize)) - new_style = true; + a_Html_tag_set_valign_attr (html, tag, tagsize); break; default: break; @@ -318,7 +315,6 @@ static void Html_tag_open_table_cell(DilloHtml *html, int colspan = 1, rowspan = 1; const char *attrbuf; int32_t bgcolor; - bool_t new_style; html->styleEngine->inheritNonCssHints (); @@ -363,8 +359,7 @@ static void Html_tag_open_table_cell(DilloHtml *html, a_Html_parse_length (html, attrbuf)); } - if (a_Html_tag_set_valign_attr (html, tag, tagsize)) - new_style = TRUE; + a_Html_tag_set_valign_attr (html, tag, tagsize); if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "bgcolor"))) { bgcolor = a_Html_color_parse(html, attrbuf, -1); |