Skip to content

Commit b1fc1ad

Browse files
committed
tests: adjust type for new compiler wanring
Preserve the const-ness of the string constants as identified by the newer compiler.
1 parent a7a0a10 commit b1fc1ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/dispatch_context_for_key.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#if DISPATCH_API_VERSION >= 20100825 && DISPATCH_API_VERSION != 20101110
3333

34-
static char *ctxts[] = {"ctxt for app", "ctxt for key 1",
34+
static const char *ctxts[] = {"ctxt for app", "ctxt for key 1",
3535
"ctxt for key 2", "ctxt for key 1 bis", "ctxt for key 4"};
3636
volatile long ctxts_destroyed;
3737
static dispatch_group_t g;

0 commit comments

Comments
 (0)