emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master a973273: Suppress WebKitGTK+ 2.21.1 diagnostics


From: Paul Eggert
Subject: [Emacs-diffs] master a973273: Suppress WebKitGTK+ 2.21.1 diagnostics
Date: Sat, 8 Dec 2018 19:02:36 -0500 (EST)

branch: master
commit a9732737f2b48a78de72d67f6ed950495788ed1d
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Suppress WebKitGTK+ 2.21.1 diagnostics
    
    * src/xwidget.c: Suppress deprecation warnings (Bug#33679).
---
 src/xwidget.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/xwidget.c b/src/xwidget.c
index 6da7a0b..5a8b105 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -30,6 +30,14 @@ along with GNU Emacs.  If not, see 
<https://www.gnu.org/licenses/>.  */
 #include <webkit2/webkit2.h>
 #include <JavaScriptCore/JavaScript.h>
 
+/* Suppress GCC deprecation warnings starting in WebKitGTK+ 2.21.1 for
+   webkit_javascript_result_get_global_context and
+   webkit_javascript_result_get_value (Bug#33679).
+   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)
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]