• 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
Name
Last commit
Last update
builds Loading commit data...
doc Loading commit data...
include Loading commit data...
packaging Loading commit data...
perf Loading commit data...
src Loading commit data...
tests Loading commit data...
tools Loading commit data...
tweetnacl Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
Dockerfile Loading commit data...
FindSodium.cmake Loading commit data...
INSTALL Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.cygwin.md Loading commit data...
README.md Loading commit data...
acinclude.m4 Loading commit data...
appveyor.yml Loading commit data...
autogen.sh Loading commit data...
branding.bmp Loading commit data...
ci_build.sh Loading commit data...
configure.ac Loading commit data...
installer.ico Loading commit data...
version.sh Loading commit data...