Skip to content

Commit 0ff1391

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#24191: refactor: Make MessageBoxFlags enum underlying type unsigned
1111d33 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 1111d33, I have reviewed the code and it looks OK, I agree it can be merged. Tree-SHA512: 48b16c4a0ace1a1e4d351d6eadadbb1bc42aef7fd82e24e3ea50c62f2c04a552ed21027158d09aa97e630c8c7d732cb150c38065333d7c2accbae46593b7ed9f
2 parents ad05e68 + 1111d33 commit 0ff1391

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/node/ui_interface.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ class CClientUIInterface
2525
{
2626
public:
2727
/** Flags for CClientUIInterface::ThreadSafeMessageBox */
28-
enum MessageBoxFlags
29-
{
28+
enum MessageBoxFlags : uint32_t {
3029
ICON_INFORMATION = 0,
3130
ICON_WARNING = (1U << 0),
3231
ICON_ERROR = (1U << 1),

test/sanitizer_suppressions/ubsan

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ implicit-integer-sign-change:compat/stdin.cpp
6666
implicit-integer-sign-change:compressor.h
6767
implicit-integer-sign-change:crypto/
6868
implicit-integer-sign-change:key.cpp
69-
implicit-integer-sign-change:noui.cpp
7069
implicit-integer-sign-change:policy/fees.cpp
7170
implicit-integer-sign-change:prevector.h
7271
implicit-integer-sign-change:script/bitcoinconsensus.cpp

0 commit comments

Comments
 (0)