Commit bef89db6 authored by Victor Zverovich's avatar Victor Zverovich

Fix a bogus -Wduplicated-branches gcc warning (#573)

parent 2a619d96
...@@ -2323,7 +2323,8 @@ struct ArgArray; ...@@ -2323,7 +2323,8 @@ struct ArgArray;
template <std::size_t N> template <std::size_t N>
struct ArgArray<N, true/*IsPacked*/> { struct ArgArray<N, true/*IsPacked*/> {
typedef Value Type[N > 0 ? N : 1]; // '+' is used to silence GCC -Wduplicated-branches warning.
typedef Value Type[N > 0 ? N : +1];
template <typename Formatter, typename T> template <typename Formatter, typename T>
static Value make(const T &value) { static Value make(const T &value) {
......
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