From: Rico Tzschichholz Date: Sat, 26 Aug 2017 19:50:08 +0000 (+0200) Subject: codegen: Actually write declaration for GNodeTraverseFunc wrapper X-Git-Tag: 0.37.91~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4056b1c18cd93cac40f1a442fd0238d48cf11cff;p=thirdparty%2Fvala.git codegen: Actually write declaration for GNodeTraverseFunc wrapper 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 --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index a3f1b2687..1d0610cb4 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -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 */