diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2003-12-27 02:03:48 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2003-12-27 02:03:48 +0000 |
commit | 0a1756a84f3916f8f49e58974da00d96fa1dec10 (patch) | |
tree | b5d7b01fd85048ce01a62d7d717713b304306496 /render/box.c | |
parent | 4da66aef4bd7c99898b3f7b016a55534c002cf2b (diff) | |
download | netsurf-0a1756a84f3916f8f49e58974da00d96fa1dec10.tar.gz netsurf-0a1756a84f3916f8f49e58974da00d96fa1dec10.tar.bz2 |
[project @ 2003-12-27 02:03:48 by jmb]
Reduce compiler warnings
svn path=/import/netsurf/; revision=456
Diffstat (limited to 'render/box.c')
-rw-r--r-- | render/box.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/render/box.c b/render/box.c index e565be0a6..39596eed1 100644 --- a/render/box.c +++ b/render/box.c @@ -364,7 +364,7 @@ struct box * convert_xml_to_box(xmlNode * n, struct content *content, box->length--; } if (parent_style->white_space == CSS_WHITE_SPACE_NOWRAP) { - int i; + unsigned int i; for (i = 0; i != box->length; i++) if (text[i] == ' ') text[i] = 160; @@ -1136,7 +1136,7 @@ void box_dump(struct box * box, unsigned int depth) fprintf(stderr, " "); fprintf(stderr, "x%li y%li w%li h%li ", box->x, box->y, box->width, box->height); - if (box->max_width != UNKNOWN_MAX_WIDTH) + if ((unsigned long)box->max_width != UNKNOWN_MAX_WIDTH) fprintf(stderr, "min%lu max%lu ", box->min_width, box->max_width); switch (box->type) { @@ -1422,7 +1422,7 @@ void box_normalise_table_row(struct box *row, struct box *next_child; struct box *cell; struct css_style *style; - unsigned int columns = 0, i, min; + unsigned int columns = 0, i; assert(row != 0); assert(row->type == BOX_TABLE_ROW); @@ -1660,7 +1660,7 @@ struct result box_object(xmlNode *n, struct status *status, struct box *box; struct object_params *po; struct plugin_params* pp; - char *s, *url; + char *s, *url = NULL; xmlNode *c; box = box_create(style, status->href, 0); @@ -1788,7 +1788,7 @@ struct result box_embed(xmlNode *n, struct status *status, struct box *box; struct object_params *po; struct plugin_params *pp; - char *s, *url; + char *s, *url = NULL; xmlAttr *a; box = box_create(style, status->href, 0); @@ -1858,7 +1858,7 @@ struct result box_applet(xmlNode *n, struct status *status, struct box *box; struct object_params *po; struct plugin_params *pp; - char *s, *url; + char *s, *url = NULL; xmlNode *c; box = box_create(style, status->href, 0); @@ -1962,7 +1962,7 @@ struct result box_iframe(xmlNode *n, struct status *status, { struct box *box; struct object_params *po; - char *s, *url; + char *s, *url = NULL; box = box_create(style, status->href, 0); |