0
0
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:
Matt Arsenault 2013-01-01 03:26:31 -05:00 committed by Matt Arsenault
parent e88dc49400
commit 3ebab09ce4
3 changed files with 12 additions and 6 deletions

View File

@ -110,9 +110,15 @@ option(LIBZMQ_PEDANTIC "" ON)
option(LIBZMQ_WERROR "" OFF) option(LIBZMQ_WERROR "" OFF)
if(LIBZMQ_PEDANTIC) if(LIBZMQ_PEDANTIC)
zmq_check_cxx_flag_prepend("-pedantic") # GCC zmq_check_cxx_flag_prepend("-pedantic")
zmq_check_cxx_flag_prepend("-strict-ansi") # ICC
zmq_check_cxx_flag_prepend("-compat=5") # Sun Studio 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() endif()
if(LIBZMQ_WERROR) if(LIBZMQ_WERROR)

View File

@ -163,7 +163,7 @@ namespace zmq
return false; return false;
} }
inline bool message_ready_size (size_t msg_sz) inline bool message_ready_size (size_t /* msg_sz */)
{ {
zmq_assert (false); zmq_assert (false);
return false; return false;

View File

@ -980,7 +980,7 @@ int zmq_proxy (void *frontend_, void *backend_, void *control_)
// The deprecated device functionality // 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 ( return zmq::proxy (
(zmq::socket_base_t*) frontend_, (zmq::socket_base_t*) frontend_,
@ -989,7 +989,7 @@ int zmq_device (int type, void *frontend_, void *backend_)
// Callback to free socket event data // 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; zmq_event_t *event = (zmq_event_t *) event_data;