From 16118883e5bf7a35c10a5f34d52329705107c7d3 Mon Sep 17 00:00:00 2001 From: Kevin Petit Date: Wed, 27 Nov 2024 16:53:47 +0000 Subject: [PATCH] Fix member initialization ordering warning 'u' was defined before 'tag' but 'tag' is initialized first. Signed-off-by: Kevin Petit --- hwcpipe/include/hwcpipe/detail/internal_types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwcpipe/include/hwcpipe/detail/internal_types.hpp b/hwcpipe/include/hwcpipe/detail/internal_types.hpp index d1aaf90..d5276b0 100644 --- a/hwcpipe/include/hwcpipe/detail/internal_types.hpp +++ b/hwcpipe/include/hwcpipe/detail/internal_types.hpp @@ -96,6 +96,7 @@ struct block_offset { */ struct counter_definition { enum class type { invalid, hardware, expression }; + type tag; union u { block_offset address{}; expression::expression_definition expression; @@ -104,7 +105,6 @@ struct counter_definition { explicit u(block_offset address) : address(address) {} } u; - type tag; counter_definition() : tag(type::invalid)