Commit 7afd6ab5 authored by Constantin Rack's avatar Constantin Rack Committed by GitHub

Merge pull request #2732 from bluca/compiler_warnings

Problems: compiler warnings
parents 31e3977a 8feed48b
...@@ -433,11 +433,13 @@ void zmq::session_base_t::engine_error ( ...@@ -433,11 +433,13 @@ void zmq::session_base_t::engine_error (
switch (reason) { switch (reason) {
case stream_engine_t::timeout_error: case stream_engine_t::timeout_error:
/* FALLTHROUGH */
case stream_engine_t::connection_error: case stream_engine_t::connection_error:
if (active) { if (active) {
reconnect (); reconnect ();
break; break;
} }
/* FALLTHROUGH */
case stream_engine_t::protocol_error: case stream_engine_t::protocol_error:
if (pending) { if (pending) {
if (pipe) if (pipe)
......
...@@ -224,6 +224,9 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool ...@@ -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, int zmq::socket_base_t::get_peer_state (const void *identity,
size_t identity_size) const size_t identity_size) const
{ {
LIBZMQ_UNUSED (identity);
LIBZMQ_UNUSED (identity_size);
// Only ROUTER sockets support this // Only ROUTER sockets support this
errno = ENOTSUP; errno = ENOTSUP;
return -1; return -1;
......
...@@ -225,7 +225,7 @@ void test_add_modify_remove_corner_cases(void *ctx) ...@@ -225,7 +225,7 @@ void test_add_modify_remove_corner_cases(void *ctx)
assert (rc == 0); assert (rc == 0);
} }
void test_wait_corner_cases (void *ctx) void test_wait_corner_cases (void)
{ {
void *poller = zmq_poller_new (); void *poller = zmq_poller_new ();
assert (poller != NULL); assert (poller != NULL);
...@@ -393,7 +393,7 @@ int main (void) ...@@ -393,7 +393,7 @@ int main (void)
test_null_event_pointers (ctx); test_null_event_pointers (ctx);
test_add_modify_remove_corner_cases (ctx); test_add_modify_remove_corner_cases (ctx);
test_wait_corner_cases (ctx); test_wait_corner_cases ();
rc = zmq_poller_destroy (&poller); rc = zmq_poller_destroy (&poller);
assert (rc == 0); assert (rc == 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment