From 656fe49dbeaa88f65e0b44c66d9434dc73468adc Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 12 Mar 2015 13:03:28 -0700 Subject: [PATCH] ui: Fix undefined variable warning gcc is super smart and notices that we don't have a default case here. --- src/ui/theme.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/theme.c b/src/ui/theme.c index 4aff7e068..243d369c2 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -656,6 +656,7 @@ get_button_rect (MetaButtonType type, *rect = fgeom->appmenu_rect.visible; break; + default: case META_BUTTON_TYPE_LAST: g_assert_not_reached (); break;