[gnome-builder] gjs: less noise on gcc
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] gjs: less noise on gcc
- Date: Sun, 10 May 2015 00:38:11 +0000 (UTC)
commit d9a832969bed3e45ef9a532be3b30913b2c5a688
Author: Christian Hergert <christian hergert me>
Date: Sat May 9 17:37:48 2015 -0700
gjs: less noise on gcc
libide/gjs/ide-gjs-script.cpp | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/libide/gjs/ide-gjs-script.cpp b/libide/gjs/ide-gjs-script.cpp
index 5a9df13..ae53a6e 100644
--- a/libide/gjs/ide-gjs-script.cpp
+++ b/libide/gjs/ide-gjs-script.cpp
@@ -17,13 +17,17 @@
*/
#define GLIB_DISABLE_DEPRECATION_WARNINGS
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wuninitialized"
-#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
-#pragma clang diagnostic ignored "-Winvalid-offsetof"
+#ifdef __clang__
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wuninitialized"
+# pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
+# pragma clang diagnostic ignored "-Winvalid-offsetof"
+#endif
#include <gjs/gjs.h>
#include <gjs/gjs-module.h>
-#pragma clang diagnostic pop
+#ifdef __clang__
+# pragma clang diagnostic pop
+#endif
#include <gi/object.h>
#include <glib/gi18n.h>
#undef GLIB_DISABLE_DEPRECATION_WARNINGS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]