summaryrefslogtreecommitdiff
path: root/libunwind
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-08-31 13:23:24 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-08-31 13:23:24 +0000
commit4e159cf94ceb1a2ff4dd99f772b46607b0fb36db (patch)
tree2a1c362ba12e98b8202f9b72ea4c2e15c4ae8228 /libunwind
parent54581fbe299c1f66c15ed5cc55c14d51cd110172 (diff)
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
Diffstat (limited to 'libunwind')
-rw-r--r--libunwind/src/config.h6
-rw-r--r--libunwind/src/unwind_ext.h2
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);