[vala/staging] glib-2.0: Cast strcmp to GCompareFunc
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] glib-2.0: Cast strcmp to GCompareFunc
- Date: Sun, 25 Nov 2018 16:26:23 +0000 (UTC)
commit 1383ab9f78f81b4ef56d63b38df702253ac8469b
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Nov 25 16:26:22 2018 +0100
glib-2.0: Cast strcmp to GCompareFunc
This will silence some incompatible pointer type warnings.
vapi/glib-2.0.vapi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 67c7f1c1c..76ddeb5b5 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -4639,7 +4639,7 @@ namespace GLib {
public delegate int CompareDataFunc<G> (G a, G b);
[Version (since = "2.16")]
- [CCode (cname = "g_strcmp0")]
+ [CCode (cname = "((GCompareFunc) g_strcmp0)")]
public static GLib.CompareFunc<string> strcmp;
public delegate G CopyFunc<G> (G src);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]