Silence some Clang static analyzer warnings

This commit is contained in:
twinaphex 2018-03-29 14:11:52 +02:00
parent 265b0560b3
commit 2c882a01c1
2 changed files with 4 additions and 8 deletions

View File

@ -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));

View File

@ -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));