From 2c882a01c12cd3104964c70f95b4037fdd6dc4e5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 29 Mar 2018 14:11:52 +0200 Subject: [PATCH] Silence some Clang static analyzer warnings --- libretro-common/net/net_http.c | 1 - menu/menu_displaylist.c | 11 ++++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/libretro-common/net/net_http.c b/libretro-common/net/net_http.c index 3b25f340d9..caa6e56c93 100644 --- a/libretro-common/net/net_http.c +++ b/libretro-common/net/net_http.c @@ -138,7 +138,6 @@ void net_http_urlencode_full(char *dest, char *tmp = NULL; char url_domain[PATH_MAX_LENGTH] = {0}; char url_path[PATH_MAX_LENGTH] = {0}; - char url_encoded[PATH_MAX_LENGTH] = {0}; int count = 0; strlcpy (url_path, source, sizeof(url_path)); diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index bdc3c8df3f..a3a47fb682 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -3282,16 +3282,13 @@ static int menu_displaylist_parse_options_remappings( { for (retro_id = 0; retro_id < RARCH_FIRST_CUSTOM_BIND; retro_id++) { - unsigned user = settings->uints.keymapper_port + 1; - unsigned desc_offset = retro_id; char descriptor[255]; - const struct retro_keybind *auto_bind = NULL; - const struct retro_keybind *keybind = NULL; - - keybind = &input_config_binds[settings->uints.keymapper_port][retro_id]; - auto_bind = (const struct retro_keybind*) + const struct retro_keybind *keybind = &input_config_binds[settings->uints.keymapper_port][retro_id]; + const struct retro_keybind *auto_bind = (const struct retro_keybind*) input_config_get_bind_auto(settings->uints.keymapper_port, retro_id); + descriptor[0] = '\0'; + input_config_get_bind_string(descriptor, keybind, auto_bind, sizeof(descriptor));