Skip to content

Commit

Permalink
Merge pull request #2298 from clalancette/clalancette/solve-warning
Browse files Browse the repository at this point in the history
iox-#2011 Solve a warning when building in Release mode.
  • Loading branch information
elfenpiff authored Jun 11, 2024
2 parents 32f83bc + a4a1157 commit ebdf387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iceoryx_posh/source/popo/publisher_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ PublisherOptions::deserialize(const cxx::Serialization& serialized) noexcept
using ConsumerTooSlowPolicyUT = std::underlying_type_t<ConsumerTooSlowPolicy>;

PublisherOptions publisherOptions;
ConsumerTooSlowPolicyUT subscriberTooSlowPolicy;
ConsumerTooSlowPolicyUT subscriberTooSlowPolicy{0};

auto deserializationSuccessful = serialized.extract(publisherOptions.historyCapacity,
publisherOptions.nodeName,
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/source/popo/subscriber_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ SubscriberOptions::deserialize(const cxx::Serialization& serialized) noexcept
using QueueFullPolicyUT = std::underlying_type_t<QueueFullPolicy>;

SubscriberOptions subscriberOptions;
QueueFullPolicyUT queueFullPolicy;
QueueFullPolicyUT queueFullPolicy{0};

auto deserializationSuccessful = serialized.extract(subscriberOptions.queueCapacity,
subscriberOptions.historyRequest,
Expand Down

0 comments on commit ebdf387

Please sign in to comment.