From 598df12b5b4ad1f8aac2e379ac2a924fb4a002d4 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Fri, 4 Mar 2022 15:42:13 -0500 Subject: [PATCH] Fixed all clang -Wsigned-enum-bitfield warnings Made enums involved in bitfields unsigned. --- include/fmt/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 1c81bbd2d9804..304b1f1d6eed9 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2002,11 +2002,11 @@ using format_args = basic_format_args; // We cannot use enum classes as bit fields because of a gcc bug // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414. namespace align { -enum type { none, left, right, center, numeric }; +enum type : unsigned { none, left, right, center, numeric }; } using align_t = align::type; namespace sign { -enum type { none, minus, plus, space }; +enum type : unsigned { none, minus, plus, space }; } using sign_t = sign::type;