From 958251ef76db60dba6f0bb48c50a7cc9b9e9c4f1 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 9 Apr 2022 09:46:39 -0700 Subject: [PATCH] Add some prototypes to fix -Wstrict-prototypes. NFC --- libunwind/src/cet_unwind.h | 2 +- libunwind/src/config.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libunwind/src/cet_unwind.h b/libunwind/src/cet_unwind.h index e371be2..c364ed3 100644 --- a/libunwind/src/cet_unwind.h +++ b/libunwind/src/cet_unwind.h @@ -36,6 +36,6 @@ #endif extern void *__libunwind_cet_get_registers(unw_cursor_t *); -extern void *__libunwind_cet_get_jump_target(); +extern void *__libunwind_cet_get_jump_target(void); #endif diff --git a/libunwind/src/config.h b/libunwind/src/config.h index 5ae1604..d230918 100644 --- a/libunwind/src/config.h +++ b/libunwind/src/config.h @@ -188,9 +188,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 -- 2.7.4