mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Squash warnings
svn path=/trunk/netsurf/; revision=10866
This commit is contained in:
parent
6173bb0e6c
commit
864f682465
@ -940,7 +940,7 @@ create_toolbar(struct gui_window *gw,
|
||||
fbtk_widget_t *widget;
|
||||
|
||||
int xpos; /* The position of the next widget. */
|
||||
int xlhs; /* extent of the left hand side widgets */
|
||||
int xlhs = 0; /* extent of the left hand side widgets */
|
||||
int xdir = 1; /* the direction of movement + or - 1 */
|
||||
const char *itmtype; /* type of the next item */
|
||||
|
||||
@ -1117,13 +1117,16 @@ create_toolbar(struct gui_window *gw,
|
||||
break;
|
||||
|
||||
default:
|
||||
widget = NULL;
|
||||
xdir = 0;
|
||||
LOG(("Unknown element %c in toolbar layout", *itmtype));
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
xpos += (xdir * (fbtk_get_width(widget) + padding));
|
||||
if (widget != NULL) {
|
||||
xpos += (xdir * (fbtk_get_width(widget) + padding));
|
||||
}
|
||||
|
||||
LOG(("xpos is %d",xpos));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user