Skip to content

Commit

Permalink
Attempt to fix GCC build break
Browse files Browse the repository at this point in the history
  • Loading branch information
Chippiewill committed Jun 30, 2016
1 parent e680ff7 commit b08ddf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions include/phosphor/category_registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ namespace phosphor {

std::mutex mutex;

std::array<std::string, registry_size> groups =
std::array<std::string, registry_size>{
{"default", "category limit reached", "__metadata"}};
std::array<std::string, registry_size> groups;
static CONSTEXPR int index_category_limit = 1;
static CONSTEXPR int index_metadata = 2;
static CONSTEXPR int index_non_default_categories = 3;
Expand Down
3 changes: 2 additions & 1 deletion src/category_registry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
namespace phosphor {

CategoryRegistry::CategoryRegistry()
: group_count(index_non_default_categories) {
: groups({{"default", "category limit reached", "__metadata"}}),
group_count(index_non_default_categories) {
for (auto& status : group_statuses) {
status.store(CategoryStatus::Disabled, std::memory_order_relaxed);
}
Expand Down

0 comments on commit b08ddf0

Please sign in to comment.