mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00:00
Fix a couple more warnings
This commit is contained in:
parent
6ecb796e77
commit
f770954d30
@ -124,6 +124,7 @@ void zmq::object_t::process_command (command_t &cmd_)
|
|||||||
process_reaped ();
|
process_reaped ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case command_t::done:
|
||||||
default:
|
default:
|
||||||
zmq_assert (false);
|
zmq_assert (false);
|
||||||
}
|
}
|
||||||
|
@ -331,9 +331,12 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
errno = EINVAL;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
errno = EINVAL;
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int zmq::options_t::getsockopt (int option_, void *optval_, size_t *optvallen_)
|
int zmq::options_t::getsockopt (int option_, void *optval_, size_t *optvallen_)
|
||||||
|
@ -202,8 +202,8 @@ void zmq::signaler_t::recv ()
|
|||||||
// one, return it back to the eventfd object.
|
// one, return it back to the eventfd object.
|
||||||
if (unlikely (dummy == 2)) {
|
if (unlikely (dummy == 2)) {
|
||||||
const uint64_t inc = 1;
|
const uint64_t inc = 1;
|
||||||
ssize_t sz = write (w, &inc, sizeof (inc));
|
ssize_t sz2 = write (w, &inc, sizeof (inc));
|
||||||
errno_assert (sz == sizeof (inc));
|
errno_assert (sz2 == sizeof (inc));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user