aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-12 15:21:04 +0100
committerDavid Robillard <d@drobilla.net>2017-02-12 15:21:04 +0100
commit8832868ae0d394bf2c89e91aa40198bbbab0aae6 (patch)
treee5836bda34ac37ae96583498c94cd4c7db5cd4dd
parent3088a5f39323c0ff75536e27e5e896a4f27b3c91 (diff)
downloadjalv-8832868ae0d394bf2c89e91aa40198bbbab0aae6.tar.gz
jalv-8832868ae0d394bf2c89e91aa40198bbbab0aae6.tar.bz2
jalv-8832868ae0d394bf2c89e91aa40198bbbab0aae6.zip
Disable deprecation warnings with Gtk3
-rw-r--r--src/jalv_gtk.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c
index ea11e87..45a5142 100644
--- a/src/jalv_gtk.c
+++ b/src/jalv_gtk.c
@@ -1,5 +1,5 @@
/*
- Copyright 2007-2016 David Robillard <http://drobilla.net>
+ Copyright 2007-2017 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -23,6 +23,16 @@
#include "jalv_internal.h"
+#if GTK_MAJOR_VERSION == 3
+#if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+#endif
+
static GtkCheckMenuItem* active_preset_item = NULL;
static bool updating = false;
@@ -1226,3 +1236,12 @@ jalv_close_ui(Jalv* jalv)
gtk_main_quit();
return 0;
}
+
+#if GTK_MAJOR_VERSION == 3
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
+# pragma GCC diagnostic pop
+#endif
+#endif
+