From ca2d3be4883394c419371645058e8e503fa786c2 Mon Sep 17 00:00:00 2001 From: bzt Date: Sun, 10 Jul 2022 19:26:50 +0200 Subject: [PATCH] Fixed warning with Wstrict-prototypes issue #39 --- uefi/crt_aarch64.c | 2 +- uefi/crt_x86_64.c | 2 +- uefi/uefi.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uefi/crt_aarch64.c b/uefi/crt_aarch64.c index e4c6d9e..ef0db22 100644 --- a/uefi/crt_aarch64.c +++ b/uefi/crt_aarch64.c @@ -69,7 +69,7 @@ char *__argvutf8 = NULL; #endif /* we only need one .o file, so use inline Assembly here */ -void bootstrap() +void bootstrap(void) { __asm__ __volatile__ ( /* call init in C */ diff --git a/uefi/crt_x86_64.c b/uefi/crt_x86_64.c index b7c58b3..4151e67 100644 --- a/uefi/crt_x86_64.c +++ b/uefi/crt_x86_64.c @@ -69,7 +69,7 @@ char *__argvutf8 = NULL; #endif /* we only need one .o file, so use inline Assembly here */ -void bootstrap() +void bootstrap(void) { __asm__ __volatile__ ( /* call init in C */ diff --git a/uefi/uefi.h b/uefi/uefi.h index 423768b..6f900ed 100644 --- a/uefi/uefi.h +++ b/uefi/uefi.h @@ -1300,7 +1300,7 @@ extern void free (void *__ptr); extern void abort (void); extern void exit (int __status); /* exit Boot Services function. Returns 0 on success. */ -extern int exit_bs(); +extern int exit_bs(void); extern void *bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar); extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar); extern int mblen (const char *__s, size_t __n);