mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Fix more gcc -Wformat= warnings with C89_BUILD.
The "z" modifier was introduced in c99, but using "l" instead seems to work. setting_list.c: In function ‘setting_get_string_representation_size’: setting_list.c:175:24: warning: ISO C90 does not support the ‘z’ gnu_printf length modifier [-Wformat=] snprintf(s, len, "%" PRI_SIZET, ^~~ setting_list.c: In function ‘setting_get_string_representation_size_in_mb’: setting_list.c:183:24: warning: ISO C90 does not support the ‘z’ gnu_printf length modifier [-Wformat=] snprintf(s, len, "%" PRI_SIZET, ^~~ setting_list.c: In function ‘setting_set_with_string_representation’: setting_list.c:508:24: warning: ISO C90 does not support the ‘z’ gnu_scanf length modifier [-Wformat=] sscanf(value, "%" PRI_SIZET, setting->value.target.sizet); ^~~ libretro-common/file/config_file.c: In function ‘config_get_size_t’: libretro-common/file/config_file.c:692:32: warning: ISO C90 does not support the ‘z’ gnu_scanf length modifier [-Wformat=] if (sscanf(entry->value, "%" PRI_SIZET, &val) == 1
This commit is contained in:
parent
169002ef7f
commit
14905e33e1
@ -166,7 +166,7 @@ typedef struct
|
||||
#endif
|
||||
# endif
|
||||
#else
|
||||
# define PRI_SIZET "zu"
|
||||
# define PRI_SIZET "lu"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user