From c3c2e930f1beafc799a996f5b276488c6f538b8c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 29 Aug 2018 19:51:18 +0100 Subject: [PATCH 21/32] fixup! containers test: Exercise name-listing methods Fix misuse of G_N_ELEMENTS on a GStrv (thanks, gcc 8; I take it all back, your new warnings *are* useful) --- test/containers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/containers.c b/test/containers.c index 1bf81948..16d1ccc2 100644 --- a/test/containers.c +++ b/test/containers.c @@ -2419,7 +2419,7 @@ test_allow_list (Fixture *f, /* For each name we can see as activatable, assert that either it's * one we are allowed to see, or the test makes no particular * statement about */ - for (i = 0; i < G_N_ELEMENTS (names); i++) + for (i = 0; names[i] != NULL; i++) { const gchar *name = names[i]; -- 2.19.0.rc1