diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-19 18:22:20 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-19 18:27:33 +0100 |
commit | 1d1d0ef22ef9dd529d8a271d7b3e43520c7276b4 (patch) | |
tree | 8b8e7117031942b34768a7d0c7af8891a528b237 | |
parent | 180a2ea304f32b74c474ead85dd6fcdd32a0a74c (diff) | |
download | vala-1d1d0ef22ef9dd529d8a271d7b3e43520c7276b4.tar.gz |
ccode: Add void to delegate typedef declarations without parameters
Found with -Werror=strict-prototypes
-rw-r--r-- | ccode/valaccodefunctiondeclarator.vala | 3 |
1 files changed, 3 insertions, 0 deletions
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 (")"); |