Wrap array in ctor with braces.

	* method.c: Wrap array in ctor with braces in order
	to silent clang warnings.
parent 8e480ec1
2020-03-04 Martin Liska <mliska@suse.cz>
* method.c: Wrap array in ctor with braces in order
to silent clang warnings.
2020-03-03 Jason Merrill <jason@redhat.com>
Marek Polacek <polacek@redhat.com>
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment