From 2e03285180248fd7ce582e357db4284426659e51 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 4 Mar 2020 09:31:05 +0100 Subject: [PATCH] Wrap array in ctor with braces. * method.c: Wrap array in ctor with braces in order to silent clang warnings. --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/method.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 590c8988666..34ff88ee033 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2020-03-04 Martin Liska + + * method.c: Wrap array in ctor with braces in order + to silent clang warnings. + 2020-03-03 Jason Merrill Marek Polacek diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 790d5704092..f10cfecaae8 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -900,9 +900,9 @@ struct comp_cat_info_t }; static const comp_cat_info_t comp_cat_info[cc_last] = { - { "partial_ordering", "equivalent", "greater", "less", "unordered" }, - { "weak_ordering", "equivalent", "greater", "less" }, - { "strong_ordering", "equal", "greater", "less" } + { "partial_ordering", { "equivalent", "greater", "less", "unordered" } }, + { "weak_ordering", { "equivalent", "greater", "less" } }, + { "strong_ordering", { "equal", "greater", "less" } } }; /* A cache of the category types to speed repeated lookups. */ -- 2.30.2