From 36b73c0a3a11571a38efb2af7c8f8afb9098c1b4 Mon Sep 17 00:00:00 2001 From: Fabio Porcedda Date: Wed, 12 Nov 2025 11:30:32 +0100 Subject: [PATCH] Fix -Wstrict-prototypes warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use void instead of empty parentheses. sbat.c:459:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 459 | clear_sbat_policy() | ^~~~~~~~~~~~~~~~~ MokManager.c:740:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 740 | static INTN reset_system() | ^~~~~~~~~~~~ MokManager.c:2155:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 2155 | static int draw_countdown() | ^~~~~~~~~~~~~~ Signed-off-by: Fabio Porcedda --- MokManager.c | 4 ++-- sbat.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MokManager.c b/MokManager.c index 52f5c0a04..010180fd4 100644 --- a/MokManager.c +++ b/MokManager.c @@ -737,7 +737,7 @@ static EFI_STATUS compute_pw_hash(void *Data, UINTN DataSize, UINT8 * password, return efi_status; } -static INTN reset_system() +static INTN reset_system(void) { RT->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL); console_notify(L"Failed to reboot\n"); @@ -2152,7 +2152,7 @@ static BOOLEAN verify_pw(BOOLEAN * protected) return TRUE; } -static int draw_countdown() +static int draw_countdown(void) { CHAR16 *message = L"Press any key to perform MOK management"; CHAR16 *title; diff --git a/sbat.c b/sbat.c index f31d9454a..8f29e3982 100644 --- a/sbat.c +++ b/sbat.c @@ -456,7 +456,7 @@ preserve_ssp_uefi_variable(UINT8 *ssp_applied, UINTN sspversize, UINT32 attribut } static void -clear_sbat_policy() +clear_sbat_policy(void) { EFI_STATUS efi_status = EFI_SUCCESS;