From 8fc4db23dc115787b57d13fe0c0192df1704706b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 9 Jan 2015 17:48:20 +0100 Subject: [PATCH] (360) Silence some warnings --- input/input_common.c | 3 +++ menu/disp/rmenu_xui.cpp | 4 ++++ runloop.c | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/input/input_common.c b/input/input_common.c index 9eec22ddb0..b25a57548b 100644 --- a/input/input_common.c +++ b/input/input_common.c @@ -478,6 +478,9 @@ void input_get_bind_string(char *buf, const struct retro_keybind *bind, { char key[64], keybuf[64]; + (void)key; + (void)keybuf; + *buf = '\0'; if (bind->joykey != NO_BTN) input_get_bind_string_joykey(buf, "", bind, size); diff --git a/menu/disp/rmenu_xui.cpp b/menu/disp/rmenu_xui.cpp index 233b4e3402..49924f51a3 100644 --- a/menu/disp/rmenu_xui.cpp +++ b/menu/disp/rmenu_xui.cpp @@ -363,6 +363,8 @@ static void rmenu_xui_render(void) const char *label = NULL; unsigned menu_type = 0; + (void)begin; + if (!driver.menu || driver.menu->need_refresh && g_extern.is_menu && !driver.menu->msg_force) return; @@ -416,6 +418,8 @@ static void rmenu_xui_render(void) unsigned type = 0, w = 0; bool selected = false; + (void)entry_title_buf; + menu_list_get_at_offset(driver.menu->menu_list->selection_buf, i, &path, &entry_label, &type); diff --git a/runloop.c b/runloop.c index c0a89555ea..cf8497b4a0 100644 --- a/runloop.c +++ b/runloop.c @@ -624,6 +624,8 @@ static void check_block_hotkey(bool enable_hotkey) */ static inline retro_input_t input_keys_pressed(void) { + int key; + unsigned i; static const struct retro_keybind *binds[MAX_USERS] = { g_settings.input.binds[0], g_settings.input.binds[1], @@ -643,7 +645,6 @@ static inline retro_input_t input_keys_pressed(void) g_settings.input.binds[15], }; retro_input_t ret = 0; - int i, key; g_extern.turbo_count++;