Skip to content

Commit 3d1e8a8

Browse files
committed
lib/erl_interface: add proper prototypes in ei_runner.c for GCC 15
GCC 15 rejects calls through empty-parameter declarations like static int readn(); static void dump(); in its default C mode, reporting errors such as "too many arguments to function". GCC 13 and GCC 14 still accept this code in default mode, but GCC 15 follows newer C2x/C23 semantics here. Fix this by replacing the non-prototype declarations in ei_runner.c with proper prototypes matching the existing definitions.
1 parent bb2e765 commit 3d1e8a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/erl_interface/test/all_SUITE_data/ei_runner.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ static int fd_to_erl; /* File descriptor to Erlang. */
4747

4848
static int packet_loop();
4949
static void ensure_buf_big_enough();
50-
static int readn();
50+
static int readn(int fd, unsigned char *buf, int len);
5151
static void reply(char* buf, unsigned size);
52-
static void dump();
52+
static void dump(unsigned char* buf, int sz, int max);
5353

5454
void
5555
run_tests(char* argv0, TestCase test_cases[], unsigned number)

0 commit comments

Comments
 (0)