diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xwidget.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xwidget.c b/src/xwidget.c index 6da7a0bb3f4..5a8b105f2fa 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/>. */ | |||
| 30 | #include <webkit2/webkit2.h> | 30 | #include <webkit2/webkit2.h> |
| 31 | #include <JavaScriptCore/JavaScript.h> | 31 | #include <JavaScriptCore/JavaScript.h> |
| 32 | 32 | ||
| 33 | /* Suppress GCC deprecation warnings starting in WebKitGTK+ 2.21.1 for | ||
| 34 | webkit_javascript_result_get_global_context and | ||
| 35 | webkit_javascript_result_get_value (Bug#33679). | ||
| 36 | FIXME: Use the JavaScriptCore GLib API instead, and remove this hack. */ | ||
| 37 | #if WEBKIT_CHECK_VERSION (2, 21, 1) && GNUC_PREREQ (4, 2, 0) | ||
| 38 | # pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||
| 39 | #endif | ||
| 40 | |||
| 33 | static struct xwidget * | 41 | static struct xwidget * |
| 34 | allocate_xwidget (void) | 42 | allocate_xwidget (void) |
| 35 | { | 43 | { |