From e356bfef18f8746956bf14bd7a3f396af83276e6 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Wed, 28 Jan 2026 10:34:33 -0500 Subject: [PATCH] tests: specify enum underlying type Part-of: --- tests/tests_generic_callbacks.cpp | 4 ++-- tests/tests_relation_chain.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tests_generic_callbacks.cpp b/tests/tests_generic_callbacks.cpp index db7925aa1..44559aa01 100644 --- a/tests/tests_generic_callbacks.cpp +++ b/tests/tests_generic_callbacks.cpp @@ -12,7 +12,7 @@ using xrt::auxiliary::util::GenericCallbacks; -enum class MyEvent +enum class MyEvent : std::uint8_t { ACQUIRED = 1u << 0u, LOST = 1u << 1u, @@ -153,7 +153,7 @@ TEST_CASE("u_generic_callbacks") } -enum MyCEvent +enum class MyCEvent : std::uint8_t { MY_C_EVENT_ACQUIRE = 1u << 0u, MY_C_EVENT_LOST = 1u << 1u, diff --git a/tests/tests_relation_chain.cpp b/tests/tests_relation_chain.cpp index a3353375d..bf57775b2 100644 --- a/tests/tests_relation_chain.cpp +++ b/tests/tests_relation_chain.cpp @@ -85,7 +85,7 @@ constexpr xrt_space_relation kSpaceRelationOnlyPosition = { * */ -enum Functions +enum Functions : std::uint8_t { NV, // (Non-Identity) (Space Relation) Neither Position/Orientation Valid, Not Tracked VT, // (Non-Identity) (Space Relation) Position/Orientation Valid, Tracked