]> 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>
Sun, 27 Aug 2017 08:33:54 +0000 (10:33 +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 53c7832b943c94447344b568b595b939feef74c5..c0d10ef82b183bc26e10ba5bb443c382c8dabff7 100644 (file)
@@ -3222,7 +3222,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 */