mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Fix a bogus -Wduplicated-branches gcc warning (#573)
This commit is contained in:
parent
2a619d96dd
commit
bef89db6e7
@ -2323,7 +2323,8 @@ struct ArgArray;
|
||||
|
||||
template <std::size_t N>
|
||||
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>
|
||||
static Value make(const T &value) {
|
||||
|
Loading…
Reference in New Issue
Block a user