Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
735c02ed
Commit
735c02ed
authored
Aug 21, 2015
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1546 from reza-ebrahimi/master
rename ZMQ_UNUSED macro to LIBZMQ_UNUSED
parents
b07b1e27
63260d87
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
23 additions
and
20 deletions
+23
-20
zmq.h
include/zmq.h
+5
-2
client.cpp
src/client.cpp
+1
-1
dealer.cpp
src/dealer.cpp
+1
-1
pair.cpp
src/pair.cpp
+1
-1
pull.cpp
src/pull.cpp
+1
-1
push.cpp
src/push.cpp
+1
-1
router.cpp
src/router.cpp
+1
-1
server.cpp
src/server.cpp
+1
-1
stream.cpp
src/stream.cpp
+1
-1
tcp.cpp
src/tcp.cpp
+5
-5
tcp_address.cpp
src/tcp_address.cpp
+4
-4
xsub.cpp
src/xsub.cpp
+1
-1
No files found.
include/zmq.h
View file @
735c02ed
...
...
@@ -512,15 +512,18 @@ ZMQ_EXPORT void zmq_threadclose (void* thread);
/******************************************************************************/
/* 0MQ
General
*/
/* 0MQ
Internal Use
*/
/******************************************************************************/
#define ZMQ_UNUSED(object) (void)object
#define
LIB
ZMQ_UNUSED(object) (void)object
#define LIBZMQ_DELETE(p_object) {\
delete p_object; \
p_object = 0; \
}
/******************************************************************************/
#undef ZMQ_EXPORT
#ifdef __cplusplus
...
...
src/client.cpp
View file @
735c02ed
...
...
@@ -43,7 +43,7 @@ zmq::client_t::~client_t ()
void
zmq
::
client_t
::
xattach_pipe
(
pipe_t
*
pipe_
,
bool
subscribe_to_all_
)
{
ZMQ_UNUSED
(
subscribe_to_all_
);
LIB
ZMQ_UNUSED
(
subscribe_to_all_
);
zmq_assert
(
pipe_
);
...
...
src/dealer.cpp
View file @
735c02ed
...
...
@@ -44,7 +44,7 @@ zmq::dealer_t::~dealer_t ()
void
zmq
::
dealer_t
::
xattach_pipe
(
pipe_t
*
pipe_
,
bool
subscribe_to_all_
)
{
ZMQ_UNUSED
(
subscribe_to_all_
);
LIB
ZMQ_UNUSED
(
subscribe_to_all_
);
zmq_assert
(
pipe_
);
...
...
src/pair.cpp
View file @
735c02ed
...
...
@@ -47,7 +47,7 @@ zmq::pair_t::~pair_t ()
void
zmq
::
pair_t
::
xattach_pipe
(
pipe_t
*
pipe_
,
bool
subscribe_to_all_
)
{
ZMQ_UNUSED
(
subscribe_to_all_
);
LIB
ZMQ_UNUSED
(
subscribe_to_all_
);
zmq_assert
(
pipe_
!=
NULL
);
...
...
src/pull.cpp
View file @
735c02ed
...
...
@@ -44,7 +44,7 @@ zmq::pull_t::~pull_t ()
void
zmq
::
pull_t
::
xattach_pipe
(
pipe_t
*
pipe_
,
bool
subscribe_to_all_
)
{
ZMQ_UNUSED
(
subscribe_to_all_
);
LIB
ZMQ_UNUSED
(
subscribe_to_all_
);
zmq_assert
(
pipe_
);
fq
.
attach
(
pipe_
);
...
...
src/push.cpp
View file @
735c02ed
...
...
@@ -44,7 +44,7 @@ zmq::push_t::~push_t ()
void
zmq
::
push_t
::
xattach_pipe
(
pipe_t
*
pipe_
,
bool
subscribe_to_all_
)
{
ZMQ_UNUSED
(
subscribe_to_all_
);
LIB
ZMQ_UNUSED
(
subscribe_to_all_
);
// Don't delay pipe termination as there is no one
// to receive the delimiter.
...
...
src/router.cpp
View file @
735c02ed
...
...
@@ -66,7 +66,7 @@ zmq::router_t::~router_t ()
void
zmq
::
router_t
::
xattach_pipe
(
pipe_t
*
pipe_
,
bool
subscribe_to_all_
)
{
ZMQ_UNUSED
(
subscribe_to_all_
);
LIB
ZMQ_UNUSED
(
subscribe_to_all_
);
zmq_assert
(
pipe_
);
...
...
src/server.cpp
View file @
735c02ed
...
...
@@ -48,7 +48,7 @@ zmq::server_t::~server_t ()
void
zmq
::
server_t
::
xattach_pipe
(
pipe_t
*
pipe_
,
bool
subscribe_to_all_
)
{
ZMQ_UNUSED
(
subscribe_to_all_
);
LIB
ZMQ_UNUSED
(
subscribe_to_all_
);
zmq_assert
(
pipe_
);
...
...
src/stream.cpp
View file @
735c02ed
...
...
@@ -58,7 +58,7 @@ zmq::stream_t::~stream_t ()
void
zmq
::
stream_t
::
xattach_pipe
(
pipe_t
*
pipe_
,
bool
subscribe_to_all_
)
{
ZMQ_UNUSED
(
subscribe_to_all_
);
LIB
ZMQ_UNUSED
(
subscribe_to_all_
);
zmq_assert
(
pipe_
);
...
...
src/tcp.cpp
View file @
735c02ed
...
...
@@ -94,13 +94,13 @@ void zmq::set_tcp_receive_buffer (fd_t sockfd_, int bufsize_)
void
zmq
::
tune_tcp_keepalives
(
fd_t
s_
,
int
keepalive_
,
int
keepalive_cnt_
,
int
keepalive_idle_
,
int
keepalive_intvl_
)
{
// These options are used only under certain #ifdefs below.
ZMQ_UNUSED
(
keepalive_
);
ZMQ_UNUSED
(
keepalive_cnt_
);
ZMQ_UNUSED
(
keepalive_idle_
);
ZMQ_UNUSED
(
keepalive_intvl_
);
LIB
ZMQ_UNUSED
(
keepalive_
);
LIB
ZMQ_UNUSED
(
keepalive_cnt_
);
LIB
ZMQ_UNUSED
(
keepalive_idle_
);
LIB
ZMQ_UNUSED
(
keepalive_intvl_
);
// If none of the #ifdefs apply, then s_ is unused.
ZMQ_UNUSED
(
s_
);
LIB
ZMQ_UNUSED
(
s_
);
// Tuning TCP keep-alives if platform allows it
// All values = -1 means skip and leave it for OS
...
...
src/tcp_address.cpp
View file @
735c02ed
...
...
@@ -56,7 +56,7 @@
int
zmq
::
tcp_address_t
::
resolve_nic_name
(
const
char
*
nic_
,
bool
ipv6_
,
bool
is_src_
)
{
// TODO: Unused parameter, IPv6 support not implemented for Solaris.
ZMQ_UNUSED
(
ipv6_
);
LIB
ZMQ_UNUSED
(
ipv6_
);
// Create a socket.
const
int
fd
=
open_socket
(
AF_INET
,
SOCK_DGRAM
,
0
);
...
...
@@ -123,7 +123,7 @@ int zmq::tcp_address_t::resolve_nic_name (const char *nic_, bool ipv6_, bool is_
int
zmq
::
tcp_address_t
::
resolve_nic_name
(
const
char
*
nic_
,
bool
ipv6_
,
bool
is_src_
)
{
// TODO: Unused parameter, IPv6 support not implemented for AIX or HP/UX.
ZMQ_UNUSED
(
ipv6_
);
LIB
ZMQ_UNUSED
(
ipv6_
);
// Create a socket.
const
int
sd
=
open_socket
(
AF_INET
,
SOCK_DGRAM
,
0
);
...
...
@@ -209,8 +209,8 @@ int zmq::tcp_address_t::resolve_nic_name (const char *nic_, bool ipv6_, bool is_
// This is true especially of Windows.
int
zmq
::
tcp_address_t
::
resolve_nic_name
(
const
char
*
nic_
,
bool
ipv6_
,
bool
is_src_
)
{
ZMQ_UNUSED
(
nic_
);
ZMQ_UNUSED
(
ipv6_
);
LIB
ZMQ_UNUSED
(
nic_
);
LIB
ZMQ_UNUSED
(
ipv6_
);
errno
=
ENODEV
;
return
-
1
;
...
...
src/xsub.cpp
View file @
735c02ed
...
...
@@ -55,7 +55,7 @@ zmq::xsub_t::~xsub_t ()
void
zmq
::
xsub_t
::
xattach_pipe
(
pipe_t
*
pipe_
,
bool
subscribe_to_all_
)
{
ZMQ_UNUSED
(
subscribe_to_all_
);
LIB
ZMQ_UNUSED
(
subscribe_to_all_
);
zmq_assert
(
pipe_
);
fq
.
attach
(
pipe_
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment