[gtk+] Fix compilation warning: set a default case in switchs



commit 06f66c185ab6315be6d429dceeb2f2e4873b654e
Author: Javier Jardón <jjardon gnome org>
Date:   Thu Apr 15 21:10:32 2010 +0200

    Fix compilation warning: set a default case in switchs

 gtk/gtktoolbar.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index a543791..b56abdf 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -4303,6 +4303,10 @@ toolbar_content_get_goal_allocation (ToolbarContent *content,
        */
       g_assert_not_reached ();
       break;
+
+    default:
+      g_assert_not_reached ();
+      break;
     }
 }
 
@@ -4311,7 +4315,7 @@ toolbar_content_get_allocation (ToolbarContent *content,
 				GtkAllocation  *allocation)
 {
   GtkToolbarChild *child;
-  
+
   switch (content->type)
     {
     case TOOL_ITEM:
@@ -4326,6 +4330,10 @@ toolbar_content_get_allocation (ToolbarContent *content,
       else
 	*allocation = child->widget->allocation;
       break;
+
+    default:
+      g_assert_not_reached ();
+      break;
     }
 }
 



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