From 625a5e7134c2405c17693c8e8f9d24ba47ca6d0e Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Wed, 25 Jul 2007 13:25:25 +0000 Subject: [PATCH] add void to function declarations without parameters as required by C89 2007-07-25 Juerg Billeter * ccode/valaccodefunction.vala: add void to function declarations without parameters as required by C89 svn path=/trunk/; revision=384 --- ChangeLog | 5 +++++ ccode/valaccodefunction.vala | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4e2ab7a..9541aa2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-25 Jürg Billeter + + * ccode/valaccodefunction.vala: add void to function declarations + without parameters as required by C89 + 2007-07-24 Jürg Billeter * vala/valasemanticanalyzer.vala, gobject/valacodegenerator.vala: diff --git a/ccode/valaccodefunction.vala b/ccode/valaccodefunction.vala index 722cf97..eee58c2 100644 --- a/ccode/valaccodefunction.vala +++ b/ccode/valaccodefunction.vala @@ -101,6 +101,9 @@ public class Vala.CCodeFunction : CCodeNode { } param.write (writer); } + if (first) { + writer.write_string ("void"); + } writer.write_string (")"); if (block == null) { -- 2.7.4