From abd35c18834bf4bd1645ef0f8eabf3bfe30cf724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Sun, 20 Sep 2015 05:06:53 +0300 Subject: gradient: fix build warnings --- src/ui/gradient.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ui/gradient.c b/src/ui/gradient.c index 39075f1d..bb327ef8 100644 --- a/src/ui/gradient.c +++ b/src/ui/gradient.c @@ -106,6 +106,9 @@ meta_gradient_create_simple (int width, from, to); case META_GRADIENT_LAST: break; + + default: + break; } g_assert_not_reached (); return NULL; @@ -118,7 +121,6 @@ meta_gradient_create_multi (int width, int n_colors, MetaGradientType style) { - if (n_colors > 2) { switch (style) @@ -132,6 +134,9 @@ meta_gradient_create_multi (int width, case META_GRADIENT_LAST: g_assert_not_reached (); break; + default: + g_assert_not_reached (); + break; } } else if (n_colors > 1) @@ -836,5 +841,9 @@ meta_gradient_add_alpha (GdkPixbuf *pixbuf, case META_GRADIENT_LAST: g_assert_not_reached (); break; + + default: + g_assert_not_reached (); + break; } } -- cgit v1.2.1