From 066089873b0a3b5ae0bdd099b8ff86af02563cea Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 11 Jan 2020 04:13:05 +0100 Subject: [PATCH] Prevent warning when HAVE_NETWORKING is not defined --- menu/cbs/menu_cbs_ok.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 0afa074df3..417c66b887 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -4310,19 +4310,19 @@ static int action_ok_core_updater_download(const char *path, return 0; } +#ifdef HAVE_NETWORKING static int action_ok_update_installed_cores(const char *path, const char *label, unsigned type, size_t idx, size_t entry_idx) { -#ifdef HAVE_NETWORKING /* Ensure networking is initialised */ generic_action_ok_command(CMD_EVENT_NETWORK_INIT); /* Push update task */ task_push_update_installed_cores(); -#endif return 0; } +#endif static int action_ok_sideload_core(const char *path, const char *label, unsigned type, size_t idx, size_t entry_idx)