From: Emil Velikov Date: Fri, 6 Oct 2023 15:19:21 +0000 (+0100) Subject: sd-boot: cast away reboot_into_firmware() return type X-Git-Tag: v255-rc1~303^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=498d0cc426afc13fdadb0a385fd16c005645e0cf;p=thirdparty%2Fsystemd.git 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 --- 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; }