summaryrefslogtreecommitdiff
path: root/dev-scheme/c-wrapper/files/c-wrapper-gcc-15.patch
blob: 9f6128b0c76c5959242501de50f63a0fab36adf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Fix build with GCC 15

https://bugs.gentoo.org/943982

--- a/src/c-lex.c
+++ b/src/c-lex.c
@@ -887,7 +887,7 @@ static inline int backslash(int c)
         case 'x':
             c1 = buffer_peek_char();
             if (is_hex_digit_char(c1)) {
-                return readx(c1);
+                return readx();
             } else {
                 Scm_Error("\\x must be followed by hex-digit, but got '%c'", c1);
             }
@@ -934,7 +934,7 @@ static inline int backslash(int c)
                         SCM_LIST1(SCM_MAKE_CHAR(c)));
                 return c;
             } else {
-                return buffer_read_char(c);
+                return buffer_read_char();
             }
         }
     } else {