1. 30 Jan, 2016 3 commits
    • Jean-Christophe Fillion-Robin's avatar
      Style: Fix -Wmissing-field-initializers in socket_poller.cpp · 2cb8da3b
      Jean-Christophe Fillion-Robin authored
      This commit addresses the following warnings reported on gcc 5.2.1. In
      the future, this will help reduce the "noise" and help catch warnings
      revealing a serious problem.
      
      It was originally introduce in the refactoring associated with
      zeromq/libzmq@da2bc60 (Removing zmq_pollfd as it is replaced by zmq_poller).
      
      8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
      /path/to/libzmq/src/socket_poller.cpp: In member function ‘int zmq::socket_poller_t::add(zmq::socket_base_t*, void*, short int)’:
      /path/to/libzmq/src/socket_poller.cpp:92:51: warning: missing initializer for member ‘zmq::socket_poller_t::item_t::pollfd_index’ [-Wmissing-field-initializers]
           item_t item = {socket_, 0, user_data_, events_};
                                                         ^
      /path/to/libzmq/src/socket_poller.cpp: In member function ‘int zmq::socket_poller_t::add_fd(zmq::fd_t, void*, short int)’:
      /path/to/libzmq/src/socket_poller.cpp:108:50: warning: missing initializer for member ‘zmq::socket_poller_t::item_t::pollfd_index’ [-Wmissing-field-initializers]
           item_t item = {NULL, fd_, user_data_, events_};
                                                        ^
      8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
      2cb8da3b
    • Jean-Christophe Fillion-Robin's avatar
      Style: Fix -Wunused-but-set-variable in test_stream_exceeds_buffer.cpp · 46b02338
      Jean-Christophe Fillion-Robin authored
      This commit addresses the following warnings reported on gcc 5.2.1. In
      the future, this will help reduce the "noise" and help catch warnings
      revealing a serious problem.
      
      8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
      /path/to/libzmq/tests/test_stream_exceeds_buffer.cpp: In function ‘int main()’:
      /path/to/libzmq/tests/test_stream_exceeds_buffer.cpp:19:9: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
           int rc = setsockopt(server_sock, SOL_SOCKET, SO_REUSEADDR, &enable, sizeof(enable));
               ^
      8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
      46b02338
    • Jean-Christophe Fillion-Robin's avatar
      Style: Fix unused parameter compilation warnings · f329252d
      Jean-Christophe Fillion-Robin authored
      This commit addresses the following warnings reported on gcc 5.2.1. In
      the future, this will help reduce the "noise" and help catch warnings
      revealing a serious problem.
      
      8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
      /path/to/libzmq/src/options.cpp:1048:36: warning: unused parameter ‘option_’ [-Wunused-parameter]
       bool zmq::options_t::is_valid (int option_) const
                                          ^
      
      /path/to/libzmq/src/plain_client.cpp:146:30: warning: unused parameter ‘cmd_data’ [-Wunused-parameter]
               const unsigned char *cmd_data, size_t data_size)
                                    ^
      
      /path/to/libzmq/src/plain_client.cpp:146:30: warning: unused parameter ‘cmd_data’ [-Wunused-parameter]
               const unsigned char *cmd_data, size_t data_size)
                                    ^
      
      /path/to/libzmq/src/socket_base.cpp:1445:44: warning: unused parameter ‘group_’ [-Wunused-parameter]
       int zmq::socket_base_t::xjoin (const char *group_)
                                                  ^
      /path/to/libzmq/src/socket_base.cpp:1451:45: warning: unused parameter ‘group_’ [-Wunused-parameter]
       int zmq::socket_base_t::xleave (const char *group_)
                                                   ^
      
      /path/to/libzmq/src/radio.cpp:145:33: warning: unused parameter ‘msg_’ [-Wunused-parameter]
       int zmq::radio_t::xrecv (msg_t *msg_)
                                       ^
      /path/to/libzmq/src/dish.cpp:164:32: warning: unused parameter ‘msg_’ [-Wunused-parameter]
       int zmq::dish_t::xsend (msg_t *msg_)
                                      ^
      
      /path/to/libzmq/tests/test_msg_ffn.cpp:32:16: warning: unused parameter ‘data’ [-Wunused-parameter]
       void ffn(void *data, void *hint) {
                      ^
      
      /path/to/libzmq/tests/test_timers.cpp:50:19: warning: unused parameter ‘timer_id’ [-Wunused-parameter]
       void handler (int timer_id, void* arg)
                         ^
      8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
      f329252d
  2. 29 Jan, 2016 10 commits
  3. 28 Jan, 2016 5 commits
  4. 27 Jan, 2016 2 commits
  5. 22 Jan, 2016 3 commits
  6. 21 Jan, 2016 6 commits
  7. 20 Jan, 2016 8 commits
  8. 19 Jan, 2016 3 commits