unit-tests: Fix const compiler warning
This commit is contained in:
parent
8b801aac77
commit
868b3fd01e
@ -213,9 +213,9 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
g_option_context_free (ctx);
|
g_option_context_free (ctx);
|
||||||
|
|
||||||
char *fake_args[] = { NULL, "--wayland", "--nested" };
|
const char *fake_args[] = { NULL, "--wayland", "--nested" };
|
||||||
fake_args[0] = argv[0];
|
fake_args[0] = argv[0];
|
||||||
char **fake_argv = fake_args;
|
char **fake_argv = (char**)fake_args;
|
||||||
int fake_argc = G_N_ELEMENTS (fake_args);
|
int fake_argc = G_N_ELEMENTS (fake_args);
|
||||||
|
|
||||||
ctx = meta_get_option_context ();
|
ctx = meta_get_option_context ();
|
||||||
|
Loading…
Reference in New Issue
Block a user