get rid off some compiler warnings

This commit is contained in:
Sascha Kruse 2013-02-25 22:04:34 +01:00
parent 779c4354c4
commit 0c3c7c8d16

6
x.c
View File

@ -122,6 +122,9 @@ static color_t x_get_separator_color(color_t fg, color_t bg)
return fg; return fg;
case AUTO: case AUTO:
return calculate_foreground_color(bg); return calculate_foreground_color(bg);
default:
printf("Unknown separator color type. Please file a Bugreport.\n");
return fg;
} }
} }
@ -146,6 +149,7 @@ void r_setup_pango_layout(PangoLayout *layout, int width)
PangoAlignment align; PangoAlignment align;
switch (settings.align) { switch (settings.align) {
case left: case left:
default:
align = PANGO_ALIGN_LEFT; align = PANGO_ALIGN_LEFT;
break; break;
case center: case center:
@ -256,7 +260,7 @@ GSList *r_create_layouts(cairo_t *c)
int qlen = g_list_length(g_queue_peek_head_link(queue)); int qlen = g_list_length(g_queue_peek_head_link(queue));
bool xmore_is_needed = qlen > 0 && settings.indicate_hidden; bool xmore_is_needed = qlen > 0 && settings.indicate_hidden;
notification *last; notification *last = NULL;
for (GList *iter = g_queue_peek_head_link(displayed); for (GList *iter = g_queue_peek_head_link(displayed);
iter; iter = iter->next) iter; iter = iter->next)
{ {