diff options
author | Kazushi Marukawa <marukawa@nec.com> | 2023-09-24 15:16:28 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-24 15:16:28 +0900 |
commit | 2398cb0c19a89831655bff05ada102947f147190 (patch) | |
tree | ebd63a898ce1c7d9df96f328c9ed4c953dbec916 /libunwind | |
parent | 186a4b3b657878ae2aea23caf684b6e103901162 (diff) | |
download | llvm-2398cb0c19a89831655bff05ada102947f147190.zip llvm-2398cb0c19a89831655bff05ada102947f147190.tar.gz llvm-2398cb0c19a89831655bff05ada102947f147190.tar.bz2 |
[libunwind][nfc] avoid prototype warning (#67250)
Avoid following prototype related warning.
Unwind-sjlj.c:85:75: warning: a function declaration without a prototype
is deprecated in all versions of C [-Wstrict-prototypes]
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/src/Unwind-sjlj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libunwind/src/Unwind-sjlj.c b/libunwind/src/Unwind-sjlj.c index 90a55fd..4d9a026 100644 --- a/libunwind/src/Unwind-sjlj.c +++ b/libunwind/src/Unwind-sjlj.c @@ -82,7 +82,8 @@ struct _Unwind_FunctionContext { static _LIBUNWIND_THREAD_LOCAL struct _Unwind_FunctionContext *stack = NULL; #endif -static struct _Unwind_FunctionContext *__Unwind_SjLj_GetTopOfFunctionStack() { +static struct _Unwind_FunctionContext * +__Unwind_SjLj_GetTopOfFunctionStack(void) { #if defined(__APPLE__) return _pthread_getspecific_direct(__PTK_LIBC_DYLD_Unwind_SjLj_Key); #else |