-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a couple of warnings pointed out by clang. (#133)
1. Add braces around initialization of array elements. 2. Remove an unused structure member. Signed-off-by: Chris Lalancette <[email protected]>
- Loading branch information
1 parent
4fba5cc
commit c7c6cc7
Showing
2 changed files
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,8 +301,8 @@ rmw_context_impl_s::initialize_discovery_options(DDS_DomainParticipantQos & dp_q | |
// If it's too large then we will send a lot of announcement traffic. | ||
// The default number here is picked arbitrarily. | ||
const rmw_peer_address_t localhost_peers[2] = { | ||
"[email protected]://127.0.0.1", | ||
"[email protected]://", | ||
{"[email protected]://127.0.0.1"}, | ||
{"[email protected]://"}, | ||
}; | ||
const auto rc2 = rmw_connextdds_extend_initial_peer_list( | ||
localhost_peers, | ||
|