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) {