From 8832868ae0d394bf2c89e91aa40198bbbab0aae6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Feb 2017 15:21:04 +0100 Subject: Disable deprecation warnings with Gtk3 --- src/jalv_gtk.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'src') 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 + Copyright 2007-2017 David Robillard 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 + -- cgit v1.2.1