From 406c8bee7ba1415f2ee661c1568e3825f9392376 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 9 Aug 2021 21:24:03 +0200 Subject: [PATCH] Silenc some warnings --- audio/drivers/rwebaudio.c | 2 +- frontend/drivers/platform_emscripten.c | 3 --- menu/menu_displaylist.c | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/audio/drivers/rwebaudio.c b/audio/drivers/rwebaudio.c index 914d8b0197..1cfcd2fda0 100644 --- a/audio/drivers/rwebaudio.c +++ b/audio/drivers/rwebaudio.c @@ -49,7 +49,7 @@ static void *rwebaudio_init(const char *device, unsigned rate, unsigned latency, rweb_audio_t *rwebaudio = (rweb_audio_t*)calloc(1, sizeof(rweb_audio_t)); if (!rwebaudio) return NULL; - if (RWebAudioInit(latency) == 1) + if (RWebAudioInit(latency)) *new_rate = RWebAudioSampleRate(); return rwebaudio; } diff --git a/frontend/drivers/platform_emscripten.c b/frontend/drivers/platform_emscripten.c index a33cc6bf29..2c4b7eff72 100644 --- a/frontend/drivers/platform_emscripten.c +++ b/frontend/drivers/platform_emscripten.c @@ -73,9 +73,6 @@ void cmd_take_screenshot(void) static void frontend_emscripten_get_env(int *argc, char *argv[], void *args, void *params_data) { - (void)args; - - unsigned i; char base_path[PATH_MAX] = {0}; char user_path[PATH_MAX] = {0}; const char *home = getenv("HOME"); diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 643821a043..bbf2e549fa 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -943,7 +943,7 @@ static unsigned menu_displaylist_parse_core_option_dropdown_list( core_option_manager_t *coreopts = NULL; struct core_option *option = NULL; const char *val = NULL; - unsigned i, j; + unsigned j; /* Fetch options */ rarch_ctl(RARCH_CTL_CORE_OPTIONS_LIST_GET, &coreopts); @@ -9618,7 +9618,6 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, menu_displaylist_info_t *info, settings_t *settings) { - size_t i; menu_ctx_displaylist_t disp_list; bool load_content = true; bool use_filebrowser = false; @@ -9638,6 +9637,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, case DISPLAYLIST_NETWORK_HOSTING_SETTINGS_LIST: #ifdef HAVE_NETWORKING { + size_t i; bool include_everything = false; file_list_t *list = info->list; menu_displaylist_build_info_selective_t build_list[] = {