[gnome-panel/wip-warnings: 4/5] struts: add default case in switch



commit 5e8381e615c4879832ad93e827a687f220183d2c
Author: Sebastian Geiger <sbastig gmx net>
Date:   Mon Feb 24 15:51:01 2020 +0100

    struts: add default case in switch

 gnome-panel/panel-struts.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gnome-panel/panel-struts.c b/gnome-panel/panel-struts.c
index f0130c663..709113b10 100644
--- a/gnome-panel/panel-struts.c
+++ b/gnome-panel/panel-struts.c
@@ -440,6 +440,9 @@ panel_struts_register_strut (PanelToplevel    *toplevel,
                strut->geometry.width  = strut->strut_size;
                strut->geometry.height = strut->strut_end - strut->strut_start + 1;
                break;
+       default:
+               g_assert_not_reached ();
+               break;
        }
 
        if (new_strut)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]