[vala/staging] ccode: Add void to delegate typedef declarations without parameters
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] ccode: Add void to delegate typedef declarations without parameters
- Date: Mon, 19 Nov 2018 17:41:41 +0000 (UTC)
commit 1d1d0ef22ef9dd529d8a271d7b3e43520c7276b4
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 529473d14..c67a087a1 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]