unit-tests: Fix const compiler warning

This commit is contained in:
Florian Müllner 2016-03-10 17:32:42 +01:00
parent 8b801aac77
commit 868b3fd01e

View File

@ -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 ();