[libunwind] 2398cb0 - [libunwind][nfc] avoid prototype warning (#67250)

via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 23 23:16:32 PDT 2023


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


        


More information about the cfe-commits mailing list