From: Martin Liska Date: Wed, 4 Mar 2020 08:31:05 +0000 (+0100) Subject: Wrap array in ctor with braces. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e03285180248fd7ce582e357db4284426659e51;p=gcc.git Wrap array in ctor with braces. * method.c: Wrap array in ctor with braces in order to silent clang warnings. --- 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. */