From 02fff6fd0172502545389dcf335b173b4f951dda Mon Sep 17 00:00:00 2001 From: Eric Joldasov Date: Mon, 10 Oct 2022 08:54:57 +0600 Subject: [PATCH] Fix building with Clang 16 Related: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240 --- src/stage1/parse_f128.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stage1/parse_f128.c b/src/stage1/parse_f128.c index ea6acc73d0..493375e4d1 100644 --- a/src/stage1/parse_f128.c +++ b/src/stage1/parse_f128.c @@ -983,14 +983,14 @@ static int isspace(int c) return c == ' ' || (unsigned)c-'\t' < 5; } -static inline float128_t makeInf128() { +static inline float128_t makeInf128(void) { union ldshape ux; ux.i2.hi = 0x7fff000000000000UL; ux.i2.lo = 0x0UL; return ux.f; } -static inline float128_t makeNaN128() { +static inline float128_t makeNaN128(void) { uint64_t rand = 0UL; union ldshape ux; ux.i2.hi = 0x7fff000000000000UL | (rand & 0xffffffffffffUL);