mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
88fd3f0a76
commit
caab1a41dc
@ -58,7 +58,11 @@ test_name_macro_wrapper (void)
|
|||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
#if G_CXX_STD_CHECK_VERSION (11)
|
||||||
g_test_init (&argc, &argv, NULL);
|
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", test_name);
|
||||||
g_test_add_func ("/gtask/name/macro-wrapper", test_name_macro_wrapper);
|
g_test_add_func ("/gtask/name/macro-wrapper", test_name_macro_wrapper);
|
||||||
|
Loading…
Reference in New Issue
Block a user