From a5fbd8405cdad7169814e69ae992791ccc7b0a17 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Mon, 24 Feb 2020 22:27:43 +0100 Subject: [PATCH] Avoid C99 construct incompatible with strict C++ compiler --- tests/test-mcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-mcore.c b/tests/test-mcore.c index 8ee156d6..c57cdcca 100644 --- a/tests/test-mcore.c +++ b/tests/test-mcore.c @@ -431,7 +431,7 @@ static void test_move_default(void) f_ti(x); assert(x[0] == 0); - ts y2, x2 = { .b = 2, .c = 3}; + ts y2, x2 = { 2, 3}; M_MOVE_DEFAULT(y2, x2); assert(y2.b == 2 && y2.c == 3); assert(x2.b == 0 && x2.c == 0);