diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-09-20 05:06:53 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-09-20 05:06:53 +0300 |
commit | abd35c18834bf4bd1645ef0f8eabf3bfe30cf724 (patch) | |
tree | b992c230a868dcbaa70871771c5ffc79abcf8e5a | |
parent | 707f1dad098f8fb6a4d63d00c86770f6b96d522f (diff) | |
download | metacity-abd35c18834bf4bd1645ef0f8eabf3bfe30cf724.tar.gz |
gradient: fix build warnings
-rw-r--r-- | src/ui/gradient.c | 11 |
1 files changed, 10 insertions, 1 deletions
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; } } |