From 580fe803f09001abf5e21411b9ea065ef8078443 Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 29 Jan 2023 20:42:03 +0000 Subject: [PATCH] Make tmapinfo_flags a complete type For the same reason as 26ab08d55f884ae77ba0e1d400a2d6a92d1c0831: gdb refuses to fully show an instance of an enum that has incomplete type, even when the size is known. --- common/main/bm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/main/bm.h b/common/main/bm.h index cd8e50df0..f95f70bc7 100644 --- a/common/main/bm.h +++ b/common/main/bm.h @@ -51,7 +51,9 @@ enum class tmapinfo_flag : uint8_t /* endif */ }; -enum class tmapinfo_flags : uint8_t; +enum class tmapinfo_flags : uint8_t +{ +}; static constexpr uint8_t operator&(tmapinfo_flags flags, tmapinfo_flag mask) {