Commit 3ebab09c authored by Matt Arsenault's avatar Matt Arsenault Committed by Matt Arsenault

Fix unused argument warnings

parent e88dc494
......@@ -110,9 +110,15 @@ option(LIBZMQ_PEDANTIC "" ON)
option(LIBZMQ_WERROR "" OFF)
if(LIBZMQ_PEDANTIC)
zmq_check_cxx_flag_prepend("-pedantic") # GCC
zmq_check_cxx_flag_prepend("-strict-ansi") # ICC
zmq_check_cxx_flag_prepend("-compat=5") # Sun Studio
zmq_check_cxx_flag_prepend("-pedantic")
if(${CMAKE_CXX_COMPILER_ID} MATCHES "Intel")
zmq_check_cxx_flag_prepend("-strict-ansi")
endif()
if(${CMAKE_CXX_COMPILER_ID} MATCHES "SunPro")
zmq_check_cxx_flag_prepend("-compat=5")
endif()
endif()
if(LIBZMQ_WERROR)
......
......@@ -163,7 +163,7 @@ namespace zmq
return false;
}
inline bool message_ready_size (size_t msg_sz)
inline bool message_ready_size (size_t /* msg_sz */)
{
zmq_assert (false);
return false;
......
......@@ -980,7 +980,7 @@ int zmq_proxy (void *frontend_, void *backend_, void *control_)
// The deprecated device functionality
int zmq_device (int type, void *frontend_, void *backend_)
int zmq_device (int /* type */, void *frontend_, void *backend_)
{
return zmq::proxy (
(zmq::socket_base_t*) frontend_,
......@@ -989,7 +989,7 @@ int zmq_device (int type, void *frontend_, void *backend_)
// Callback to free socket event data
void zmq_free_event (void *event_data, void *hint)
void zmq_free_event (void *event_data, void * /* hint */)
{
zmq_event_t *event = (zmq_event_t *) event_data;
......
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