mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +00:00
Silence some Clang static analyzer warnings
This commit is contained in:
parent
265b0560b3
commit
2c882a01c1
@ -138,7 +138,6 @@ void net_http_urlencode_full(char *dest,
|
|||||||
char *tmp = NULL;
|
char *tmp = NULL;
|
||||||
char url_domain[PATH_MAX_LENGTH] = {0};
|
char url_domain[PATH_MAX_LENGTH] = {0};
|
||||||
char url_path[PATH_MAX_LENGTH] = {0};
|
char url_path[PATH_MAX_LENGTH] = {0};
|
||||||
char url_encoded[PATH_MAX_LENGTH] = {0};
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
strlcpy (url_path, source, sizeof(url_path));
|
strlcpy (url_path, source, sizeof(url_path));
|
||||||
|
@ -3282,16 +3282,13 @@ static int menu_displaylist_parse_options_remappings(
|
|||||||
{
|
{
|
||||||
for (retro_id = 0; retro_id < RARCH_FIRST_CUSTOM_BIND; retro_id++)
|
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];
|
char descriptor[255];
|
||||||
const struct retro_keybind *auto_bind = NULL;
|
const struct retro_keybind *keybind = &input_config_binds[settings->uints.keymapper_port][retro_id];
|
||||||
const struct retro_keybind *keybind = NULL;
|
const struct retro_keybind *auto_bind = (const struct retro_keybind*)
|
||||||
|
|
||||||
keybind = &input_config_binds[settings->uints.keymapper_port][retro_id];
|
|
||||||
auto_bind = (const struct retro_keybind*)
|
|
||||||
input_config_get_bind_auto(settings->uints.keymapper_port, retro_id);
|
input_config_get_bind_auto(settings->uints.keymapper_port, retro_id);
|
||||||
|
|
||||||
|
descriptor[0] = '\0';
|
||||||
|
|
||||||
input_config_get_bind_string(descriptor,
|
input_config_get_bind_string(descriptor,
|
||||||
keybind, auto_bind, sizeof(descriptor));
|
keybind, auto_bind, sizeof(descriptor));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user