[vala/0.40] ccode: Add void to delegate typedef declarations without parameters
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] ccode: Add void to delegate typedef declarations without parameters
- Date: Thu, 6 Dec 2018 13:12:04 +0000 (UTC)
commit fe027f82ad65598ce119cc5667abcc242345daa8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Nov 19 18:22:20 2018 +0100
ccode: Add void to delegate typedef declarations without parameters
Found with -Werror=strict-prototypes
ccode/valaccodefunctiondeclarator.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/ccode/valaccodefunctiondeclarator.vala b/ccode/valaccodefunctiondeclarator.vala
index 30f0c63b1..c67b9d840 100644
--- a/ccode/valaccodefunctiondeclarator.vala
+++ b/ccode/valaccodefunctiondeclarator.vala
@@ -74,6 +74,9 @@ public class Vala.CCodeFunctionDeclarator : CCodeDeclarator {
}
i++;
}
+ if (i == 0) {
+ writer.write_string ("void");
+ }
writer.write_string (")");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]