Merge pull request #502 from orbea/strict-prototypes

Fix -Werror=strict-prototypes
This commit is contained in:
Lior Halphon 2022-10-10 23:43:24 +03:00 committed by GitHub
commit b3d9404055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]; static uint8_t source[0x4000];
size_t size = read(STDIN_FILENO, &source, sizeof(source)); 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 if (symbol == NULL) goto lazy_error
#define TRY_DLOPEN(name) handle = handle? handle : dlopen(name, RTLD_NOW) #define TRY_DLOPEN(name) handle = handle? handle : dlopen(name, RTLD_NOW)
void nop(){} void nop(void){}
static void wait_mouse_up(void) static void wait_mouse_up(void)
{ {