>From bcdda254cb249950812a6b7122278a4d63761194 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 8 Dec 2018 15:29:07 -0800 Subject: [PATCH] Suppress WebKitGTK+ 2.21.1 diagnostics * src/xwidget.c: Suppress deprecation warnings. --- src/xwidget.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xwidget.c b/src/xwidget.c index 6da7a0bb3f..24f7d39077 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -30,6 +30,14 @@ along with GNU Emacs. If not, see . */ #include #include +/* Suppress GCC deprecation warnings starting in WebKitGTK+ 2.21.1 for + webkit_javascript_result_get_global_context and + webkit_javascript_result_get_value. + FIXME: Use the JavaScriptCore GLib API instead, and remove this hack. */ +#if WEBKIT_CHECK_VERSION (2, 21, 1) && GNUC_PREREQ (4, 2, 0) +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + static struct xwidget * allocate_xwidget (void) { -- 2.19.2