diff --git a/src/tests/unit-tests.c b/src/tests/unit-tests.c index 019b6d54a..37332f0b1 100644 --- a/src/tests/unit-tests.c +++ b/src/tests/unit-tests.c @@ -213,9 +213,9 @@ main (int argc, char *argv[]) g_option_context_free (ctx); - char *fake_args[] = { NULL, "--wayland", "--nested" }; + const char *fake_args[] = { NULL, "--wayland", "--nested" }; fake_args[0] = argv[0]; - char **fake_argv = fake_args; + char **fake_argv = (char**)fake_args; int fake_argc = G_N_ELEMENTS (fake_args); ctx = meta_get_option_context ();