]> 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>
Sun, 25 Nov 2018 16:24:10 +0000 (17:24 +0100)
This will silence some incompatible pointer type warnings.

vapi/glib-2.0.vapi

index 67c7f1c1cb038086831da647805b0b7e1f818737..76ddeb5b56a5190e33c5903ba8655f86f7c6fc8b 100644 (file)
@@ -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);