From bef89db6e7d10499a91affca7a933f264c7956d5 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 27 Sep 2017 19:21:49 -0700 Subject: [PATCH] Fix a bogus -Wduplicated-branches gcc warning (#573) --- fmt/format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fmt/format.h b/fmt/format.h index c1e6d5e1..182398b4 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -2323,7 +2323,8 @@ struct ArgArray; template struct ArgArray { - typedef Value Type[N > 0 ? N : 1]; + // '+' is used to silence GCC -Wduplicated-branches warning. + typedef Value Type[N > 0 ? N : +1]; template static Value make(const T &value) {