diff --git a/test/iterator_cpp11.cpp b/test/iterator_cpp11.cpp index 4062f13b1..df5a52005 100644 --- a/test/iterator_cpp11.cpp +++ b/test/iterator_cpp11.cpp @@ -27,7 +27,7 @@ TEST(iterator, vector) vec_type vec; vec.reserve(VECTOR_SIZE); for (unsigned int i = 0; i < VECTOR_SIZE; i++) { - vec.push_back(rand()); + vec.push_back(static_cast(rand())); } msgpack::sbuffer sbuf; msgpack::pack(sbuf, vec); @@ -53,7 +53,7 @@ TEST(iterator, map) using map_type = map; map_type map; for (unsigned int i = 0; i < MAP_SIZE; i++) { - map[rand()] = rand(); + map[static_cast(rand())] = static_cast(rand()); } msgpack::sbuffer sbuf; msgpack::pack(sbuf, map); diff --git a/test/size_equal_only.cpp b/test/size_equal_only.cpp index 89e9f1e26..d4b9da48d 100644 --- a/test/size_equal_only.cpp +++ b/test/size_equal_only.cpp @@ -192,7 +192,6 @@ TEST(size_equal_only, tuple) } struct foo1 { - foo1() = default; foo1(int i, bool b):t(i, b), seo(t) {} std::tuple t; msgpack::type::size_equal_only > seo; @@ -200,7 +199,6 @@ struct foo1 { }; struct foo2 { - foo2() = default; foo2(int i, bool b, std::string const& s):t(i, b, s), seo(t) {} std::tuple t; msgpack::type::size_equal_only > seo;