mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
Fix unused argument warnings
This commit is contained in:
parent
e88dc49400
commit
3ebab09ce4
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user