From 59111e0d11e65fa3599b78f5b5eda38c4b0e9d9d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 10 Jan 2020 19:20:26 +0100 Subject: [PATCH] Suppress warnings due to use of deprecated WebKit functions This is not the best solution, but getting dozens of lines of warnings when compiling this file is not great neither and there doesn't seem to be anything else to do about this. --- src/gtk/webview_webkit2_extension.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gtk/webview_webkit2_extension.cpp b/src/gtk/webview_webkit2_extension.cpp index e9d681ee30..b470b05f47 100644 --- a/src/gtk/webview_webkit2_extension.cpp +++ b/src/gtk/webview_webkit2_extension.cpp @@ -13,6 +13,12 @@ #include #include +// We can't easily avoid deprecation warnings about many WebKit functions, e.g. +// webkit_dom_document_get_default_view() and just about everything related to +// the selection, so for now just disable the warnings as we can't do anything +// about them anyhow. +wxGCC_WARNING_SUPPRESS(deprecated-declarations) + static const char introspection_xml[] = "" " "