https://gcc.gnu.org/g:75a049483c9519e85521a4c903d4a40412b0b25f
commit r15-9119-g75a049483c9519e85521a4c903d4a40412b0b25f Author: Jakub Jelinek <ja...@redhat.com> Date: Tue Apr 1 10:05:18 2025 +0200 libquadmath: Avoid old-style function definition warnings I've noticed ../../../libquadmath/printf/gmp-impl.h:104:18: warning: old-style function definition [-Wold-style-definition] ../../../libquadmath/printf/gmp-impl.h:104:18: warning: old-style function definition [-Wold-style-definition] ../../../libquadmath/printf/gmp-impl.h:104:18: warning: old-style function definition [-Wold-style-definition] ../../../libquadmath/strtod/strtod_l.c:456:22: warning: old-style function definition [-Wold-style-definition] warnings during bootstrap (clearly since the switch to -std=gnu23 by default). The following patch fixes those in libquadmath, the only other warnings are in zlib. 2025-04-01 Jakub Jelinek <ja...@redhat.com> * strtod/strtod_l.c (____STRTOF_INTERNAL): Avoid old-style function definitions. * printf/addmul_1.c (mpn_addmul_1): Likewise. * printf/mul_1.c (mpn_mul_1): Likewise. * printf/submul_1.c (mpn_submul_1): Likewise. Diff: --- libquadmath/printf/addmul_1.c | 7 ++----- libquadmath/printf/mul_1.c | 7 ++----- libquadmath/printf/submul_1.c | 7 ++----- libquadmath/strtod/strtod_l.c | 5 +---- 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/libquadmath/printf/addmul_1.c b/libquadmath/printf/addmul_1.c index f527f9848393..f9284a2213de 100644 --- a/libquadmath/printf/addmul_1.c +++ b/libquadmath/printf/addmul_1.c @@ -26,11 +26,8 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" mp_limb_t -mpn_addmul_1 (res_ptr, s1_ptr, s1_size, s2_limb) - register mp_ptr res_ptr; - register mp_srcptr s1_ptr; - mp_size_t s1_size; - register mp_limb_t s2_limb; +mpn_addmul_1 (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_size_t s1_size, + mp_limb_t s2_limb) { register mp_limb_t cy_limb; register mp_size_t j; diff --git a/libquadmath/printf/mul_1.c b/libquadmath/printf/mul_1.c index 48a273f075bd..17087bfaa23c 100644 --- a/libquadmath/printf/mul_1.c +++ b/libquadmath/printf/mul_1.c @@ -24,11 +24,8 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" mp_limb_t -mpn_mul_1 (res_ptr, s1_ptr, s1_size, s2_limb) - register mp_ptr res_ptr; - register mp_srcptr s1_ptr; - mp_size_t s1_size; - register mp_limb_t s2_limb; +mpn_mul_1 (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_size_t s1_size, + mp_limb_t s2_limb) { register mp_limb_t cy_limb; register mp_size_t j; diff --git a/libquadmath/printf/submul_1.c b/libquadmath/printf/submul_1.c index 31903c6284e8..a2a4fc8b4f9e 100644 --- a/libquadmath/printf/submul_1.c +++ b/libquadmath/printf/submul_1.c @@ -26,11 +26,8 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" mp_limb_t -mpn_submul_1 (res_ptr, s1_ptr, s1_size, s2_limb) - register mp_ptr res_ptr; - register mp_srcptr s1_ptr; - mp_size_t s1_size; - register mp_limb_t s2_limb; +mpn_submul_1 (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_size_t s1_size, + mp_limb_t s2_limb) { register mp_limb_t cy_limb; register mp_size_t j; diff --git a/libquadmath/strtod/strtod_l.c b/libquadmath/strtod/strtod_l.c index 38602841cd74..4e8502347d40 100644 --- a/libquadmath/strtod/strtod_l.c +++ b/libquadmath/strtod/strtod_l.c @@ -468,10 +468,7 @@ str_to_mpn (const STRING_TYPE *str, int digcnt, mp_limb_t *n, mp_size_t *nsize, return 0.0. If the number is too big to be represented, set `errno' to ERANGE and return HUGE_VAL with the appropriate sign. */ FLOAT -____STRTOF_INTERNAL (nptr, endptr, group) - const STRING_TYPE *nptr; - STRING_TYPE **endptr; - int group; +____STRTOF_INTERNAL (const STRING_TYPE *nptr, STRING_TYPE **endptr, int group) { int negative; /* The sign of the number. */ MPN_VAR (num); /* MP representation of the number. */