From caab1a41dc0dcd79cd6c579dfb834842b30ce904 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Thu, 23 Feb 2023 10:36:22 +0100 Subject: [PATCH] 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 --- gio/tests/cxx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/tests/cxx.cpp b/gio/tests/cxx.cpp index 4af7b3b5f..630eeab99 100644 --- a/gio/tests/cxx.cpp +++ b/gio/tests/cxx.cpp @@ -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(NULL)); +#endif g_test_add_func ("/gtask/name", test_name); g_test_add_func ("/gtask/name/macro-wrapper", test_name_macro_wrapper);