[dia] [warningectomy] not handled in switch



commit 5bdeb27f6d157acb2e87a4e59935bfa85020bbc7
Author: Hans Breuer <hans breuer org>
Date:   Sat Jul 31 11:53:11 2010 +0200

    [warningectomy] not handled in switch
    
    persistence.c: In function 'persistence_window_event_handler':
    persistence.c:533: warning: enumeration value 'GDK_NOTHING' not handled
    in switch
    ...

 lib/persistence.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/persistence.c b/lib/persistence.c
index addc56a..fc950d9 100644
--- a/lib/persistence.c
+++ b/lib/persistence.c
@@ -540,6 +540,9 @@ persistence_window_event_handler(GtkWindow *window, GdkEvent *event, gpointer da
   case GDK_CONFIGURE : 
     dia_log_message ("configure (%s)", persistence_get_window_name(window)); 
     break;
+  default :
+    /* silence gcc */
+    break;
   }
 #if GTK_CHECK_VERSION(2,20,0)
   persistence_update_window(window, !gtk_widget_get_mapped(GTK_WIDGET(window)));



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