webkitgtk3: Fix build break with latest gir

Reported with clang-19

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2024-10-03 08:48:52 -07:00
parent c5fb1e0d3d
commit 7be0d59669
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,33 @@
From fff1b1773bff2ef7c3b867ab019d69faa36c010d Mon Sep 17 00:00:00 2001
From: Michael Catanzaro <mcatanzaro@redhat.com>
Date: Wed, 3 Jul 2024 13:36:54 -0700
Subject: [PATCH] WebKitDOMEventTarget.h:95: Warning: WebKit2WebExtension:
invalid "scope" annotation: only valid on callback parameters
https://bugs.webkit.org/show_bug.cgi?id=276180
Unreviewed build fix.
Emmanuele recommends using (type gpointer) for the GCallback parameter
of webkit_dom_event_target_remove_event_listener, since it won't be
called and is therefore not functioning as a callback.
* Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h:
Canonical link: https://commits.webkit.org/280639@main
Upstream-Status: Backport [https://github.com/WebKit/WebKit/commit/fff1b1773bff2ef7c3b867ab019d69faa36c010d]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
+++ b/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
@@ -92,7 +92,7 @@ WEBKIT_DEPRECATED gboolean webkit_dom_e
* webkit_dom_event_target_remove_event_listener:
* @target: A #WebKitDOMEventTarget
* @event_name: A #gchar
- * @handler: (scope call): A #GCallback
+ * @handler: (type gpointer): A #GCallback
* @use_capture: A #gboolean
*
* Returns: a #gboolean

View File

@ -16,6 +16,7 @@ SRC_URI = "https://www.webkitgtk.org/releases/webkitgtk-${PV}.tar.xz \
file://0001-LowLevelInterpreter.cpp-339-21-error-t6-was-not-decl.patch \
file://30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch \
file://0001-Fix-build-issues-with-latest-Clang.patch \
file://fff1b1773bff2ef7c3b867ab019d69faa36c010d.patch \
"
SRC_URI[sha256sum] = "dc82d042ecaca981a4852357c06e5235743319cf10a94cd36ad41b97883a0b54"