Skip to content

Commit dcb4605

Browse files
authored
Fix member initialization ordering warning (#82)
'u' was defined before 'tag' but 'tag' is initialized first. Signed-off-by: Kevin Petit <[email protected]>
1 parent bdcab05 commit dcb4605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwcpipe/include/hwcpipe/detail/internal_types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ struct block_offset {
9696
*/
9797
struct counter_definition {
9898
enum class type { invalid, hardware, expression };
99+
type tag;
99100
union u {
100101
block_offset address{};
101102
expression::expression_definition expression;
@@ -104,7 +105,6 @@ struct counter_definition {
104105
explicit u(block_offset address)
105106
: address(address) {}
106107
} u;
107-
type tag;
108108

109109
counter_definition()
110110
: tag(type::invalid)

0 commit comments

Comments
 (0)