Skip to content

Commit

Permalink
Fixed all clang -Wsigned-enum-bitfield warnings
Browse files Browse the repository at this point in the history
Made enums involved in bitfields unsigned.
  • Loading branch information
seanm committed Mar 9, 2022
1 parent 76d5551 commit 598df12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -2002,11 +2002,11 @@ using format_args = basic_format_args<format_context>;
// 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;

Expand Down

0 comments on commit 598df12

Please sign in to comment.