Merge bitcoin/bitcoin#24191: refactor: Make MessageBoxFlags enum underlying type unsigned

1111d33532 refactor: Make MessageBoxFlags enum underlying type unsigned (MarcoFalke)

Pull request description:

  All values in the enum are unsigned. Also, flags shouldn't be treated as signed types. So clarify the underlying type and remove a sanitizer suppression.

ACKs for top commit:
  hebasto:
    ACK 1111d33532, I have reviewed the code and it looks OK, I agree it can be merged.

Tree-SHA512: 48b16c4a0ace1a1e4d351d6eadadbb1bc42aef7fd82e24e3ea50c62f2c04a552ed21027158d09aa97e630c8c7d732cb150c38065333d7c2accbae46593b7ed9f
pull/24217/head
MarcoFalke 3 years ago
commit 0ff1391328
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

@ -25,8 +25,7 @@ class CClientUIInterface
{ {
public: public:
/** Flags for CClientUIInterface::ThreadSafeMessageBox */ /** Flags for CClientUIInterface::ThreadSafeMessageBox */
enum MessageBoxFlags enum MessageBoxFlags : uint32_t {
{
ICON_INFORMATION = 0, ICON_INFORMATION = 0,
ICON_WARNING = (1U << 0), ICON_WARNING = (1U << 0),
ICON_ERROR = (1U << 1), ICON_ERROR = (1U << 1),

@ -66,7 +66,6 @@ implicit-integer-sign-change:compat/stdin.cpp
implicit-integer-sign-change:compressor.h implicit-integer-sign-change:compressor.h
implicit-integer-sign-change:crypto/ implicit-integer-sign-change:crypto/
implicit-integer-sign-change:key.cpp implicit-integer-sign-change:key.cpp
implicit-integer-sign-change:noui.cpp
implicit-integer-sign-change:policy/fees.cpp implicit-integer-sign-change:policy/fees.cpp
implicit-integer-sign-change:prevector.h implicit-integer-sign-change:prevector.h
implicit-integer-sign-change:script/bitcoinconsensus.cpp implicit-integer-sign-change:script/bitcoinconsensus.cpp

Loading…
Cancel
Save