Skip to content

Commit 002376c

Browse files
authored
Merge pull request #604 from redboltz/fix_gcc71_warning
Suppressed gcc 7.1 `maybe-uninitialized` warning.
2 parents 09a2f81 + 684c5e0 commit 002376c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/user_class.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class TestUnionMemberClass
152152
#pragma GCC diagnostic push
153153
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
154154
#endif // (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) && !defined(__clang__)
155-
msgpack::type::tuple<bool, msgpack::object> tuple;
155+
msgpack::type::tuple<bool, msgpack::object> tuple(false, msgpack::object());
156156
o.convert(tuple);
157157

158158
is_double = tuple.get<0>();

0 commit comments

Comments
 (0)