]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Cast strcmp to GCompareFunc
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 25 Nov 2018 15:26:22 +0000 (16:26 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 26 Nov 2018 08:59:49 +0000 (09:59 +0100)
This will silence some incompatible pointer type warnings.

vapi/glib-2.0.vapi

index fee5c1d7fbf83cb481ab844a441cadc3bd85b687..381a64a9bd2d9e858676a3a25e063557a96b9af2 100644 (file)
@@ -4633,7 +4633,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);