1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-13 12:40:47 +00:00

Silence warnings

This commit is contained in:
twinaphex 2018-07-14 00:45:16 +02:00
parent 600c2c1ca1
commit 5ba2a621c0
2 changed files with 6 additions and 2 deletions
libretro-common

@ -599,8 +599,9 @@ bool config_get_size_t(config_file_t *conf, const char *key, size_t *in)
if (entry)
{
size_t val = 0 ;
if (1 == sscanf(entry->value, "%" PRI_SIZET, &val)) {
size_t val = 0;
if (sscanf(entry->value, "%" PRI_SIZET, &val) == 1)
{
*in = val;
return true;
}

@ -118,6 +118,9 @@ bool config_get_int(config_file_t *conf, const char *entry, int *in);
/* Extracts an uint from config file. */
bool config_get_uint(config_file_t *conf, const char *entry, unsigned *in);
/* Extracts an size_t from config file. */
bool config_get_size_t(config_file_t *conf, const char *key, size_t *in);
#if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
/* Extracts an uint64 from config file. */
bool config_get_uint64(config_file_t *conf, const char *entry, uint64_t *in);