Fix warning with newest gcc

This commit is contained in:
Patrick Pelissier committed 2021-01-10 09:57:07 +01:00
1 parent f560839516
commit 93d810421d
1 file changed
+1 -1
+1 -1
View File
@@ -2129,7 +2129,7 @@ m_core_snprintf(char *str, size_t size, const char *format, ...)
NOTE: C definition using compound litteral.
*/
#define M_CSTR(...) \
m_core_snprintf( (char [M_USE_CSTR_ALLOC]){}, M_USE_CSTR_ALLOC, __VA_ARGS__)
m_core_snprintf( (char [M_USE_CSTR_ALLOC]){0}, M_USE_CSTR_ALLOC, __VA_ARGS__)
#endif