mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 19:52:00 +01:00
Silence all "unused parameter" warnings from Clang.
Compiling without warnings is a good goal, because it makes
new warnings (which probably indicate bugs) stand out rather
than getting lost in the spam.
My fixes fall into two categories:
- Adding (void) casts of unused parameters, where their
unusedness seems like a TODO (or in some cases a bug?).
- Removing parameter names altogether, where the function
is clearly a stub that will never use its parameters.
Should be no change in behavior.
This commit is contained in:
@@ -67,7 +67,7 @@ int zmq::sub_t::xsetsockopt (int option_, const void *optval_,
|
||||
return rc;
|
||||
}
|
||||
|
||||
int zmq::sub_t::xsend (msg_t *msg_, int flags_)
|
||||
int zmq::sub_t::xsend (msg_t *, int)
|
||||
{
|
||||
// Overload the XSUB's send.
|
||||
errno = ENOTSUP;
|
||||
|
||||
Reference in New Issue
Block a user