This fixes the following warning:

    ../misc/arm64ec/setjmp.c:87:28: error: no previous prototype for function 
'__intrinsic_setjmpex' [-Werror,-Wmissing-prototypes]
      GEN      libarm64/gcrt1.o
       87 | int __attribute__((naked)) __intrinsic_setjmpex( jmp_buf buf, void 
*frame )
          |                            ^
    ../misc/arm64ec/setjmp.c:87:1: note: declare 'static' if the function is 
not intended to be used outside of this translation unit
       87 | int __attribute__((naked)) __intrinsic_setjmpex( jmp_buf buf, void 
*frame )
          | ^
          | static

Signed-off-by: Martin Storsjö <[email protected]>
---
 mingw-w64-crt/misc/arm64ec/setjmp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mingw-w64-crt/misc/arm64ec/setjmp.c 
b/mingw-w64-crt/misc/arm64ec/setjmp.c
index 00dc33fbf..18f90b0e6 100644
--- a/mingw-w64-crt/misc/arm64ec/setjmp.c
+++ b/mingw-w64-crt/misc/arm64ec/setjmp.c
@@ -84,6 +84,7 @@ static int __attribute__((used)) do_setjmpex( _JUMP_BUFFER 
*buf, UINT fpcr, UINT
     return 0;
 }
 
+int __attribute__((naked)) __intrinsic_setjmpex( jmp_buf buf, void *frame );
 int __attribute__((naked)) __intrinsic_setjmpex( jmp_buf buf, void *frame )
 {
     asm( ".seh_proc \"#__intrinsic_setjmpex\"\n\t"
-- 
2.43.0



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to