diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2017-08-31 13:23:24 +0000 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2017-08-31 13:23:24 +0000 |
| commit | fbac1ae0622f17aaa3ee15a1bd7b6d8a64be9358 (patch) | |
| tree | 89047c66d3a11de60f42d59d3362e72f20e13967 /libunwind | |
| parent | 56572c6a5e47eb8581662f436810e2472416e91f (diff) | |
| download | bcm5719-llvm-fbac1ae0622f17aaa3ee15a1bd7b6d8a64be9358.tar.gz bcm5719-llvm-fbac1ae0622f17aaa3ee15a1bd7b6d8a64be9358.zip | |
Build LLVM with -Wstrict-prototypes enabled
Clang 5 supports -Wstrict-prototypes. We should use it to catch any C
declarations that declare a non-prototype function.
rdar://33705313
Differential Revision: https://reviews.llvm.org/D36669
llvm-svn: 312240
Diffstat (limited to 'libunwind')
| -rw-r--r-- | libunwind/src/config.h | 6 | ||||
| -rw-r--r-- | libunwind/src/unwind_ext.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libunwind/src/config.h b/libunwind/src/config.h index ac8d7d98dc3..80356d31c4c 100644 --- a/libunwind/src/config.h +++ b/libunwind/src/config.h @@ -119,9 +119,9 @@ #ifdef __cplusplus extern "C" { #endif - extern bool logAPIs(); - extern bool logUnwinding(); - extern bool logDWARF(); + extern bool logAPIs(void); + extern bool logUnwinding(void); + extern bool logDWARF(void); #ifdef __cplusplus } #endif diff --git a/libunwind/src/unwind_ext.h b/libunwind/src/unwind_ext.h index c40ce6a1610..2964b67ad0a 100644 --- a/libunwind/src/unwind_ext.h +++ b/libunwind/src/unwind_ext.h @@ -23,7 +23,7 @@ extern "C" { // implemented elsewhere. extern struct _Unwind_FunctionContext * -__Unwind_SjLj_GetTopOfFunctionStack(); +__Unwind_SjLj_GetTopOfFunctionStack(void); extern void __Unwind_SjLj_SetTopOfFunctionStack(struct _Unwind_FunctionContext *fc); |

