[vala/0.40] glib-2.0: Cast strcmp to GCompareFunc
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] glib-2.0: Cast strcmp to GCompareFunc
- Date: Thu, 6 Dec 2018 13:12:55 +0000 (UTC)
commit e91ef92357baf247ef50befa8f21ba8b2f663e65
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 4e488fc03..dca9615cf 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -4623,7 +4623,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]