From 6a7c7eac0b6a56f38fed88a217786c31b0a8439d Mon Sep 17 00:00:00 2001 From: Peter Bell Date: Wed, 6 May 2020 20:39:33 +0100 Subject: [PATCH] Use typed enums to fix Wsigned-enum-bitfield warnings --- include/fmt/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 6d6c2d4c..bbc5ef70 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1034,12 +1034,12 @@ template struct fill_t { // 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 : uint8_t { none, left, right, center, numeric }; } using align_t = align::type; namespace sign { -enum type { none, minus, plus, space }; +enum type : uint8_t { none, minus, plus, space }; } using sign_t = sign::type;