File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ struct Terminator {
18
18
assert (context != nullptr );
19
19
20
20
#ifdef ZMQ_BLOCKY
21
- bool const blocky = zmq_ctx_get (context, ZMQ_BLOCKY) != 0 ;
21
+ const bool blocky = zmq_ctx_get (context, ZMQ_BLOCKY) != 0 ;
22
22
#else
23
23
/* If the option cannot be set, don't suggest to set it. */
24
- bool blocky = false ;
24
+ const bool blocky = false ;
25
25
#endif
26
26
27
27
/* Start termination asynchronously so we can detect if it takes long
@@ -35,7 +35,7 @@ struct Terminator {
35
35
if (terminate.wait_for (500ms) == std::future_status::timeout) {
36
36
/* We can't use process.emitWarning, because the Node.js runtime
37
37
has already shut down. So we mimic it instead. */
38
- fprintf (stderr,
38
+ ( void ) fprintf (stderr,
39
39
" (node:%d) WARNING: Waiting for queued ZeroMQ messages to be "
40
40
" delivered.%s\n " ,
41
41
uv_os_getpid (),
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ class Poller {
74
74
[[maybe_unused]] auto err = uv_timer_start (
75
75
readable_timer.get (),
76
76
[](uv_timer_t * timer) {
77
+ // NOLINTNEXTLINE(*-pro-type-reinterpret-cast)
77
78
auto & poller = *reinterpret_cast <Poller*>(timer->data );
78
79
poller.Trigger (UV_READABLE);
79
80
},
@@ -98,6 +99,7 @@ class Poller {
98
99
[[maybe_unused]] auto err = uv_timer_start (
99
100
writable_timer.get (),
100
101
[](uv_timer_t * timer) {
102
+ // NOLINTNEXTLINE(*-pro-type-reinterpret-cast)
101
103
auto & poller = *reinterpret_cast <Poller*>(timer->data );
102
104
poller.Trigger (UV_WRITABLE);
103
105
},
@@ -164,6 +166,7 @@ class Poller {
164
166
There is no guarantee that any events are available. */
165
167
static void Callback (uv_poll_t * poll, int32_t status, int32_t /* events*/ ) {
166
168
if (status == 0 ) {
169
+ // NOLINTNEXTLINE(*-pro-type-reinterpret-cast)
167
170
auto & poller = *reinterpret_cast <Poller*>(poll->data );
168
171
poller.TriggerReadable ();
169
172
poller.TriggerWritable ();
You can’t perform that action at this time.
0 commit comments