Fixed -Wextra warnings on gcc.

This commit is contained in:
Takatoshi Kondo
2014-09-02 18:15:58 +09:00
parent d15e49cb73
commit 5896ff3746
17 changed files with 271 additions and 59 deletions

View File

@@ -82,7 +82,7 @@ struct define<> {
{
if(o.type != type::ARRAY) { throw type_error(); }
}
void msgpack_object(msgpack::object* o, msgpack::zone& z) const
void msgpack_object(msgpack::object* o, msgpack::zone&) const
{
o->type = type::ARRAY;
o->via.array.ptr = nullptr;

View File

@@ -135,7 +135,7 @@ tuple<A0<%1.upto(i) {|j|%>, A<%=j%><%}%>> make_tuple(typename tuple_type<A0>::tr
inline object const& operator>> (
object const& o,
type::tuple<>& v) {
type::tuple<>&) {
if(o.type != type::ARRAY) { throw type_error(); }
return o;
}
@@ -155,7 +155,7 @@ object const& operator>> (
template <typename Stream>
const packer<Stream>& operator<< (
packer<Stream>& o,
const type::tuple<>& v) {
const type::tuple<>&) {
o.pack_array(0);
return o;
}
@@ -173,7 +173,7 @@ const packer<Stream>& operator<< (
inline void operator<< (
object::with_zone& o,
const type::tuple<>& v) {
const type::tuple<>&) {
o.type = type::ARRAY;
o.via.array.ptr = nullptr;
o.via.array.size = 0;