]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Actually write declaration for GNodeTraverseFunc wrapper
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 26 Aug 2017 19:50:08 +0000 (21:50 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 26 Aug 2017 20:00:19 +0000 (22:00 +0200)
This fixes a very old typo which causes the wrong declaration to be written
and results in a double definition.

https://bugzilla.gnome.org/show_bug.cgi?id=786845

codegen/valaccodebasemodule.vala

index a3f1b2687825e8ddaa3711c36c7bb50843ad5eb3..1d0610cb443e22a8c612391acaeff6937b9d7903 100644 (file)
@@ -3234,7 +3234,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                        ccode.add_return (new CCodeConstant ("FALSE"));
 
                        pop_function ();
-                       cfile.add_function_declaration (function);
+                       cfile.add_function_declaration (wrapper);
                        cfile.add_function (wrapper);
 
                        /* Now the code to call g_traverse with the above */