From f1a5a0e3c3d32bb800a0a63a0cfcd1b25a8e3d4d Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 26 Nov 2014 16:34:06 +0000 Subject: Fix sysdeps/mips/__longjmp.c warning. This patch fixes ../sysdeps/mips/__longjmp.c:27:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] which arose I think from the MIPS16 changes (renaming the function to ____longjmp with an alias __longjmp, so a prior header prototype for __longjmp no longer sufficed to prevent a warning). I've made the function use a prototype definition, which is what we want for all function definitions in glibc anyway. Tested for MIPS. * sysdeps/mips/__longjmp.c (____longjmp): Use prototype definition. --- sysdeps/mips/__longjmp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sysdeps/mips') diff --git a/sysdeps/mips/__longjmp.c b/sysdeps/mips/__longjmp.c index 5e6a353..c2498c3 100644 --- a/sysdeps/mips/__longjmp.c +++ b/sysdeps/mips/__longjmp.c @@ -24,9 +24,7 @@ #endif static void __attribute__ ((nomips16)) -____longjmp (env_arg, val_arg) - __jmp_buf env_arg; - int val_arg; +____longjmp (__jmp_buf env_arg, int val_arg) { /* gcc 1.39.19 miscompiled the longjmp routine (as it did setjmp before the hack around it); force it to use $a1 for the longjmp value. -- cgit v1.1