gio/tests/cxx.cpp: fix missing sentinel for musl

This fixes:
| ../glib-2.75.3/gio/tests/cxx.cpp: In function 'int main(int, char**)':
| ../glib-2.75.3/gio/tests/cxx.cpp:61:15: error: missing sentinel in function call [-Werror=format=]
|    61 |   g_test_init (&argc, &argv, NULL);

if built with musl libc

Signed-off-by: Markus Volk <f_l_k@t-online.de>
This commit is contained in:
Markus Volk 2023-02-23 10:36:22 +01:00
parent 88fd3f0a76
commit caab1a41dc

View File

@ -58,7 +58,11 @@ test_name_macro_wrapper (void)
int
main (int argc, char **argv)
{
#if G_CXX_STD_CHECK_VERSION (11)
g_test_init (&argc, &argv, NULL);
#else
g_test_init (&argc, &argv, static_cast<void *>(NULL));
#endif
g_test_add_func ("/gtask/name", test_name);
g_test_add_func ("/gtask/name/macro-wrapper", test_name_macro_wrapper);