Author: Kazushi Marukawa Date: 2023-09-24T15:16:28+09:00 New Revision: 2398cb0c19a89831655bff05ada102947f147190
URL: https://github.com/llvm/llvm-project/commit/2398cb0c19a89831655bff05ada102947f147190 DIFF: https://github.com/llvm/llvm-project/commit/2398cb0c19a89831655bff05ada102947f147190.diff LOG: [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] Added: Modified: libunwind/src/Unwind-sjlj.c Removed: ################################################################################ diff --git a/libunwind/src/Unwind-sjlj.c b/libunwind/src/Unwind-sjlj.c index 90a55fd29db1faa..4d9a02699cddd78 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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits