From cbb7e018b8780432deeb2ae67bb4a2fd75df5982 Mon Sep 17 00:00:00 2001 From: orbea Date: Mon, 10 Oct 2022 13:35:49 -0700 Subject: [PATCH] Fix -Werror=strict-prototypes This will be required for upcoming gcc and clang versions. Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240 --- BootROMs/pb12.c | 2 +- OpenDialog/gtk.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BootROMs/pb12.c b/BootROMs/pb12.c index c74b437..a022fce 100644 --- a/BootROMs/pb12.c +++ b/BootROMs/pb12.c @@ -25,7 +25,7 @@ void write_all(int fd, const void *buf, size_t count) { } } -int main() +int main(void) { static uint8_t source[0x4000]; size_t size = read(STDIN_FILENO, &source, sizeof(source)); diff --git a/OpenDialog/gtk.c b/OpenDialog/gtk.c index d3c0faa..2b08f1d 100644 --- a/OpenDialog/gtk.c +++ b/OpenDialog/gtk.c @@ -50,7 +50,7 @@ if (symbol == NULL) symbol = dlsym(handle, #symbol);\ if (symbol == NULL) goto lazy_error #define TRY_DLOPEN(name) handle = handle? handle : dlopen(name, RTLD_NOW) -void nop(){} +void nop(void){} static void wait_mouse_up(void) {