diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c index 1e9e27dc..c442b715 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c @@ -49,7 +49,9 @@ int g_ventoy_debug = 0; static int g_efi_os = 0xFF; grub_uint32_t g_ventoy_plat_data; +#ifdef GRUB_MACHINE_EFI static VTOY_SHIM *g_vtoy_shim = NULL; +#endif void ventoy_debug(const char *fmt, ...) { diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c index 5c4fc143..b2252cb1 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c @@ -6415,13 +6415,12 @@ static grub_err_t ventoy_cmd_load_menu_lang(grub_extcmd_context_t ctxt, int argc static grub_err_t ventoy_cmd_sb_info(grub_extcmd_context_t ctxt, int argc, char **args) { - const char *policy = NULL; - (void)ctxt; (void)argc; (void)args; #ifdef GRUB_MACHINE_EFI + const char *policy = NULL; if (g_sb_policy == VTOY_SB_POLICY_BYPASS) {