[gnome-builder] pygobject: supress switch-default warning from Python



commit 63810d6aa29ca634b3113449451e6982782254ab
Author: Christian Hergert <christian hergert me>
Date:   Tue May 5 17:35:17 2015 -0700

    pygobject: supress switch-default warning from Python
    
    Not. Our. Problem.

 libide/pygobject/ide-pygobject-script.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libide/pygobject/ide-pygobject-script.c b/libide/pygobject/ide-pygobject-script.c
index 2ce2730..f13ac43 100644
--- a/libide/pygobject/ide-pygobject-script.c
+++ b/libide/pygobject/ide-pygobject-script.c
@@ -19,11 +19,14 @@
 #include "ide-context.h"
 #include "ide-pygobject-script.h"
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wswitch-default"
 /* _POSIX_C_SOURCE is defined in Python.h and in limits.h included by
  * glib-object.h, so we unset it here to avoid a warning. Yep, that's bad.
  */
 #undef _POSIX_C_SOURCE
 #include <pygobject.h>
+#pragma GCC diagnostic pop
 
 #include <glib/gi18n.h>
 


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