Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2018-09-18 18:21:45 +0000
committerEric Williams2018-09-18 18:26:24 +0000
commit944a7c0998909608606f76089e404a9c8ef16e37 (patch)
treebae736818f24c1f4b1df57678e5dbcf965520e7a
parentc3c1a5ccaca4e329bfa09fa661f52650370da9d3 (diff)
downloadeclipse.platform.swt-944a7c0998909608606f76089e404a9c8ef16e37.tar.gz
eclipse.platform.swt-944a7c0998909608606f76089e404a9c8ef16e37.tar.xz
eclipse.platform.swt-944a7c0998909608606f76089e404a9c8ef16e37.zip
Bug 539197: [Webkit2] Fix casting and compilation warnings
Add cast for GAsyncReadyCallback. Change-Id: Ib77f9732ca4d9eb04e6a5ae581cb5513f2f5f66f Signed-off-by: Eric Williams <ericwill@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
index 3e3a5beb7f..44da5c38b5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
@@ -14083,7 +14083,7 @@ JNIEXPORT void JNICALL OS_NATIVE(_1g_1dbus_1proxy_1call)
OS_NATIVE_ENTER(env, that, _1g_1dbus_1proxy_1call_FUNC);
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
if (arg7) if ((lparg7 = (*env)->GetIntLongArrayElements(env, arg7, NULL)) == NULL) goto fail;
- g_dbus_proxy_call((GDBusProxy *)arg0, (const gchar *)lparg1, (GVariant *)arg2, arg3, arg4, (GCancellable *)arg5, arg6, (GError **)lparg7);
+ g_dbus_proxy_call((GDBusProxy *)arg0, (const gchar *)lparg1, (GVariant *)arg2, arg3, arg4, (GCancellable *)arg5, (GAsyncReadyCallback)arg6, (GError **)lparg7);
fail:
if (arg7 && lparg7) (*env)->ReleaseIntLongArrayElements(env, arg7, lparg7, 0);
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
index db4dc24065..8f042fc58f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
@@ -4195,6 +4195,7 @@ public static final long /*int*/ g_dbus_proxy_call_sync (long /*int*/ proxy, byt
* @param method_name cast=(const gchar *)
* @param parameters cast=(GVariant *)
* @param cancellable cast=(GCancellable *)
+ * @param callback cast=(GAsyncReadyCallback)
* @param error cast=(GError **)
* @category gdbus
*/

Back to the top