Skip to content

Commit

Permalink
Merge pull request #784 from redboltz/more_warning_fix
Browse files Browse the repository at this point in the history
Fixed warnings.
  • Loading branch information
redboltz authored May 27, 2019
2 parents 7cdc5b8 + de99222 commit e07d774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/iterator_cpp11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned int>(rand()));
}
msgpack::sbuffer sbuf;
msgpack::pack(sbuf, vec);
Expand All @@ -53,7 +53,7 @@ TEST(iterator, map)
using map_type = map<unsigned int, unsigned int>;
map_type map;
for (unsigned int i = 0; i < MAP_SIZE; i++) {
map[rand()] = rand();
map[static_cast<unsigned int>(rand())] = static_cast<unsigned int>(rand());
}
msgpack::sbuffer sbuf;
msgpack::pack(sbuf, map);
Expand Down
2 changes: 0 additions & 2 deletions test/size_equal_only.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,13 @@ TEST(size_equal_only, tuple)
}

struct foo1 {
foo1() = default;
foo1(int i, bool b):t(i, b), seo(t) {}
std::tuple<int, bool> t;
msgpack::type::size_equal_only<std::tuple<int, bool> > seo;
MSGPACK_DEFINE(seo);
};

struct foo2 {
foo2() = default;
foo2(int i, bool b, std::string const& s):t(i, b, s), seo(t) {}
std::tuple<int, bool, std::string> t;
msgpack::type::size_equal_only<std::tuple<int, bool, std::string> > seo;
Expand Down

0 comments on commit e07d774

Please sign in to comment.