Skip to content

Commit

Permalink
Add version check for multicast_group_address arg
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed Feb 5, 2024
1 parent e026637 commit 4a3594f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dds_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ bool DDSManager::joinDomain(const int& domainID, const std::string& config, std:

newRtpsTransport->max_packet_size(defaultRtpsTransport->max_packet_size());
newRtpsTransport->max_samples_per_packet(defaultRtpsTransport->max_samples_per_packet());
newRtpsTransport->multicast_group_address(defaultRtpsTransport->multicast_group_address(domainID));
newRtpsTransport->multicast_group_address(defaultRtpsTransport->multicast_group_address(
#if OPENDDS_VERSION_AT_LEAST(3, 27, 0)

Check failure on line 378 in src/dds_manager.cpp

View workflow job for this annotation

GitHub Actions / build (latest-release, ubuntu-22.04)

unterminated #else

Check failure on line 378 in src/dds_manager.cpp

View workflow job for this annotation

GitHub Actions / build (latest-release, ubuntu-20.04)

unterminated #else
domainID
#else
));
newRtpsTransport->multicast_interface_ = (defaultRtpsTransport->multicast_interface_);
newRtpsTransport->nak_depth_ = defaultRtpsTransport->nak_depth_;
newRtpsTransport->nak_response_delay_ = defaultRtpsTransport->nak_response_delay_;
Expand Down

0 comments on commit 4a3594f

Please sign in to comment.