Commit 79a92dfd authored by Adam Simpkins's avatar Adam Simpkins Committed by Facebook Github Bot

logging: fix build error when using gcc with -Wmissing-braces

Summary:
Since std::array is actually a struct containing an array it technically
requires double braces around its initializer.  The language allows eliding
these braces, and clang doesn't complain about only using a single brace, but
gcc does when using `-Wmissing-braces`.

Reviewed By: yfeldblum

Differential Revision: D6695289

fbshipit-source-id: 913fcfbea4164a02d001bd2344e340c0b6ee62aa
parent dcf8a19c
......@@ -33,10 +33,10 @@ struct NumberedLevelInfo {
StringPiece upperPrefix;
};
constexpr std::array<NumberedLevelInfo, 2> numberedLogLevels = {
constexpr std::array<NumberedLevelInfo, 2> numberedLogLevels = {{
NumberedLevelInfo{LogLevel::DBG, LogLevel::DBG0, "dbg", "DBG"},
NumberedLevelInfo{LogLevel::INFO, LogLevel::INFO0, "info", "INFO"},
};
}};
} // namespace
LogLevel stringToLogLevel(StringPiece name) {
......
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