mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
Merge pull request #2732 from bluca/compiler_warnings
Problems: compiler warnings
This commit is contained in:
commit
7afd6ab5ef
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user