summaryrefslogtreecommitdiff
path: root/dev-lang/zig/files/zig-0.9.1-fix-clang16.patch
blob: deb563378d764b031ddd2235e66ca4bf4e1dfa52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Fix building with Clang 16
Upstream PR https://github.com/ziglang/zig/pull/13121

--- 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);