Fix -Werror=strict-prototypes

This will be required for upcoming gcc and clang versions.

Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
This commit is contained in:
orbea 2022-10-10 13:35:49 -07:00
parent 832c7463bc
commit cbb7e018b8
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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)
{