From 498d0cc426afc13fdadb0a385fd16c005645e0cf Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 6 Oct 2023 16:19:21 +0100 Subject: [PATCH] sd-boot: cast away reboot_into_firmware() return type As mentioned by Lennart, in a commit where I was adding similar piece of code: maybe cast this call to void, to tell static analyzers that we are ignoring the return value on purpose, not by accident Signed-off-by: Emil Velikov --- src/boot/efi/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 7b13cd21db4..e3f3a13ed73 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -825,7 +825,7 @@ static bool menu_run( if (firmware_setup) { firmware_setup = false; if (IN_SET(key, KEYPRESS(0, 0, '\r'), KEYPRESS(0, 0, '\n'))) - reboot_into_firmware(); + (void) reboot_into_firmware(); continue; } -- 2.47.3