Merge pull request #2732 from bluca/compiler_warnings

Problems: compiler warnings
This commit is contained in:
Constantin Rack 2017-09-01 22:11:57 +02:00 committed by GitHub
commit 7afd6ab5ef
3 changed files with 7 additions and 2 deletions

View File

@ -433,11 +433,13 @@ void zmq::session_base_t::engine_error (
switch (reason) {
case stream_engine_t::timeout_error:
/* FALLTHROUGH */
case stream_engine_t::connection_error:
if (active) {
reconnect ();
break;
}
/* FALLTHROUGH */
case stream_engine_t::protocol_error:
if (pending) {
if (pipe)

View File

@ -224,6 +224,9 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool
int zmq::socket_base_t::get_peer_state (const void *identity,
size_t identity_size) const
{
LIBZMQ_UNUSED (identity);
LIBZMQ_UNUSED (identity_size);
// Only ROUTER sockets support this
errno = ENOTSUP;
return -1;

View File

@ -225,7 +225,7 @@ void test_add_modify_remove_corner_cases(void *ctx)
assert (rc == 0);
}
void test_wait_corner_cases (void *ctx)
void test_wait_corner_cases (void)
{
void *poller = zmq_poller_new ();
assert (poller != NULL);
@ -393,7 +393,7 @@ int main (void)
test_null_event_pointers (ctx);
test_add_modify_remove_corner_cases (ctx);
test_wait_corner_cases (ctx);
test_wait_corner_cases ();
rc = zmq_poller_destroy (&poller);
assert (rc == 0);