mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 19:21:03 +00:00
(SNC) Fix a bunch of compiler warnings
This commit is contained in:
parent
80546dd326
commit
340caec0a0
@ -33,12 +33,15 @@ const char *menu_hash_to_str_eo(uint32_t hash)
|
|||||||
|
|
||||||
int menu_hash_get_help_eo(uint32_t hash, char *s, size_t len)
|
int menu_hash_get_help_eo(uint32_t hash, char *s, size_t len)
|
||||||
{
|
{
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
switch (hash)
|
switch (hash)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
return -1;
|
ret = -1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -33,12 +33,15 @@ const char *menu_hash_to_str_es(uint32_t hash)
|
|||||||
|
|
||||||
int menu_hash_get_help_es(uint32_t hash, char *s, size_t len)
|
int menu_hash_get_help_es(uint32_t hash, char *s, size_t len)
|
||||||
{
|
{
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
switch (hash)
|
switch (hash)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
return -1;
|
ret = -1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -843,15 +843,18 @@ const char *menu_hash_to_str_fr(uint32_t hash)
|
|||||||
|
|
||||||
int menu_hash_get_help_fr(uint32_t hash, char *s, size_t len)
|
int menu_hash_get_help_fr(uint32_t hash, char *s, size_t len)
|
||||||
{
|
{
|
||||||
|
int ret = 0;
|
||||||
/* If this one throws errors, stop sledgehammering square pegs into round holes and */
|
/* If this one throws errors, stop sledgehammering square pegs into round holes and */
|
||||||
/* READ THE COMMENTS at the top of the file. */ (void)sizeof(force_iso_8859_1);
|
/* READ THE COMMENTS at the top of the file. */
|
||||||
|
(void)sizeof(force_iso_8859_1);
|
||||||
|
|
||||||
switch (hash)
|
switch (hash)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
return -1;
|
ret = -1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -33,12 +33,15 @@ const char *menu_hash_to_str_it(uint32_t hash)
|
|||||||
|
|
||||||
int menu_hash_get_help_it(uint32_t hash, char *s, size_t len)
|
int menu_hash_get_help_it(uint32_t hash, char *s, size_t len)
|
||||||
{
|
{
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
switch (hash)
|
switch (hash)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
return -1;
|
ret = -1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -848,13 +848,16 @@ const char *menu_hash_to_str_nl(uint32_t hash)
|
|||||||
|
|
||||||
int menu_hash_get_help_nl(uint32_t hash, char *s, size_t len)
|
int menu_hash_get_help_nl(uint32_t hash, char *s, size_t len)
|
||||||
{
|
{
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
switch (hash)
|
switch (hash)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
strlcpy(s, "Geen informatie beschikbaar.", len);
|
strlcpy(s, "Geen informatie beschikbaar.", len);
|
||||||
return -1;
|
ret = -1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -406,11 +406,11 @@ unsigned rarch_get_cpu_cores(void)
|
|||||||
uint64_t rarch_get_cpu_features(void)
|
uint64_t rarch_get_cpu_features(void)
|
||||||
{
|
{
|
||||||
int flags[4];
|
int flags[4];
|
||||||
unsigned max_flag;
|
|
||||||
uint64_t cpu_flags;
|
|
||||||
int vendor_shuffle[3];
|
int vendor_shuffle[3];
|
||||||
char vendor[13] = {0};
|
char vendor[13] = {0};
|
||||||
|
uint64_t cpu_flags = 0;
|
||||||
uint64_t cpu = 0;
|
uint64_t cpu = 0;
|
||||||
|
unsigned max_flag = 0;
|
||||||
#if defined(CPU_X86)
|
#if defined(CPU_X86)
|
||||||
const int avx_flags = (1 << 27) | (1 << 28);
|
const int avx_flags = (1 << 27) | (1 << 28);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user