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.
This commit is contained in:
Vadim Zeitlin
2020-01-10 19:20:26 +01:00
parent 09e0b3927b
commit 59111e0d11

View File

@@ -13,6 +13,12 @@
#include <webkitdom/WebKitDOMDOMSelection.h>
#include <webkitdom/WebKitDOMDOMWindowUnstable.h>
// 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[] =
"<node>"
" <interface name='org.wxwidgets.wxGTK.WebExtension'>"