diff options
| author | Michael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com> | 2019-11-18 15:21:37 -0500 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-18 22:21:36 +0200 |
| commit | 83b4e981c4dd8b8ea521a6150a34636d10a67211 (patch) | |
| tree | 3ac84e307e6a2589073a7542a0d7127738f09576 /test cases/linuxlike/3 linker script | |
| parent | 0435691e83fb7172e2a9635d2eb32d5521089916 (diff) | |
| download | meson-83b4e981c4dd8b8ea521a6150a34636d10a67211.tar.gz | |
Use strict function prototypes
Diffstat (limited to 'test cases/linuxlike/3 linker script')
| -rw-r--r-- | test cases/linuxlike/3 linker script/bob.c | 4 | ||||
| -rw-r--r-- | test cases/linuxlike/3 linker script/bob.h | 2 | ||||
| -rw-r--r-- | test cases/linuxlike/3 linker script/prog.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test cases/linuxlike/3 linker script/bob.c b/test cases/linuxlike/3 linker script/bob.c index 7b3ed47cb..50e29c753 100644 --- a/test cases/linuxlike/3 linker script/bob.c +++ b/test cases/linuxlike/3 linker script/bob.c @@ -1,9 +1,9 @@ #include"bob.h" -int hiddenFunction() { +int hiddenFunction(void) { return 42; } -int bobMcBob() { +int bobMcBob(void) { return hiddenFunction(); } diff --git a/test cases/linuxlike/3 linker script/bob.h b/test cases/linuxlike/3 linker script/bob.h index b29331e79..351e2fc60 100644 --- a/test cases/linuxlike/3 linker script/bob.h +++ b/test cases/linuxlike/3 linker script/bob.h @@ -1,6 +1,6 @@ #ifndef BOB_H_ #define BOB_H_ -int bobMcBob(); +int bobMcBob(void); #endif diff --git a/test cases/linuxlike/3 linker script/prog.c b/test cases/linuxlike/3 linker script/prog.c index 2c9b01b02..b010b1587 100644 --- a/test cases/linuxlike/3 linker script/prog.c +++ b/test cases/linuxlike/3 linker script/prog.c @@ -1,5 +1,5 @@ #include"bob.h" -int main() { +int main(void) { return bobMcBob() != 42; } |
