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
02f7dca6
Unverified
Commit
02f7dca6
authored
Jul 10, 2019
by
Simon Giesecke
Committed by
GitHub
Jul 10, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3570 from bluca/static_analysis
Static analysis warnings
parents
b5db4b44
77cd2061
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
ci_build.sh
builds/abi-compliance-checker/ci_build.sh
+1
-0
udp_engine.cpp
src/udp_engine.cpp
+3
-3
testutil_monitoring.cpp
tests/testutil_monitoring.cpp
+3
-3
No files found.
builds/abi-compliance-checker/ci_build.sh
View file @
02f7dca6
#!/usr/bin/env bash
set
-x
set
-e
cd
../../
...
...
src/udp_engine.cpp
View file @
02f7dca6
...
...
@@ -396,8 +396,8 @@ void zmq::udp_engine_t::out_event ()
if
(
rc
==
0
)
{
msg_t
body_msg
;
rc
=
_session
->
pull_msg
(
&
body_msg
);
//
TODO rc is not checked here. We seem to assume rc == 0. An
// assertion should be added.
//
If there's a group, there should also be a body
errno_assert
(
rc
==
0
);
const
size_t
group_size
=
group_msg
.
size
();
const
size_t
body_size
=
body_msg
.
size
();
...
...
@@ -412,7 +412,7 @@ void zmq::udp_engine_t::out_event ()
rc
=
group_msg
.
close
();
errno_assert
(
rc
==
0
);
body_msg
.
close
();
rc
=
body_msg
.
close
();
errno_assert
(
rc
==
0
);
return
;
...
...
tests/testutil_monitoring.cpp
View file @
02f7dca6
...
...
@@ -339,9 +339,9 @@ void expect_monitor_event_v2 (void *monitor_,
}
if
(
expected_remote_address_
&&
0
!=
strcmp
(
remote_address
,
expected_remote_address_
))
{
pos
+=
snprintf
(
pos
,
sizeof
buf
-
(
pos
-
buf
),
"Expected remote address %s, but received %s
\n
"
,
expected_remote_address_
,
remote_address
);
snprintf
(
pos
,
sizeof
buf
-
(
pos
-
buf
),
"Expected remote address %s, but received %s
\n
"
,
expected_remote_address_
,
remote_address
);
}
free
(
local_address
);
free
(
remote_address
);
...
...
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