mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Fix some compilation warning
Added some default cases and assert if reached
This commit is contained in:
parent
8e70bc988b
commit
670e141b3a
@ -569,6 +569,11 @@ gtk_info_bar_update_colors (GtkInfoBar *info_bar)
|
||||
fg = &other_default_border_color;
|
||||
bg = &other_default_fill_color;
|
||||
break;
|
||||
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
fg = NULL;
|
||||
bg = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2730,6 +2730,10 @@ get_arrows_visible_area (GtkMenu *menu,
|
||||
lower->width = (border->width - 2 * border->x) / 2;
|
||||
lower->height = scroll_arrow_height;
|
||||
break;
|
||||
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
upper->x = upper->y = upper->width = upper->height = 0;
|
||||
}
|
||||
|
||||
*arrow_space = scroll_arrow_height - 2 * widget->style->ythickness;
|
||||
|
@ -2496,6 +2496,10 @@ common_render_page (GtkPrintOperation *op,
|
||||
x = columns - 1 - (priv->page_position / rows) % columns;
|
||||
y = rows - 1 - priv->page_position % rows;
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
x = 0;
|
||||
y = 0;
|
||||
}
|
||||
|
||||
if (priv->manual_number_up == 4 || priv->manual_number_up == 9 || priv->manual_number_up == 16)
|
||||
|
Loading…
Reference in New Issue
Block a user