Skip to content

Commit e8f871c

Browse files
committed
Solve conflicts
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
1 parent 2687497 commit e8f871c

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

include/fastrtps/config.h.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,13 @@
130130
#define FASTDDS_SER_METHOD_DEPRECATED(major, entity_name, msg)
131131
#endif
132132

133+
#if defined(_MSC_VER) && !defined(__clang__)
134+
# define FASTDDS_UNREACHABLE() __assume(0)
135+
#elif defined(__GNUC__) || defined(__clang__)
136+
# define FASTDDS_UNREACHABLE() __builtin_unreachable()
137+
#else
138+
# include <cstdlib>
139+
# define FASTDDS_UNREACHABLE() std::abort()
140+
#endif // if defined(_MSC_VER) && !defined(__clang__)
141+
133142
#endif // _FASTRTPS_CONFIG_H_

src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,7 @@ void PDPSimple::announceParticipantState(
279279
#endif // HAVE_SECURITY
280280

281281
auto endpoints = dynamic_cast<fastdds::rtps::SimplePDPEndpoints*>(builtin_endpoints_.get());
282-
<<<<<<< HEAD
283282
RTPSWriter& writer = *(endpoints->writer.writer_);
284-
=======
285-
assert(endpoints && endpoints->writer.history_);
286-
if (!endpoints || !endpoints->writer.history_)
287-
{
288-
FASTDDS_UNREACHABLE(); // “cannot happen” invariant
289-
}
290-
291-
>>>>>>> 910ac9907 (Assert liveliness with periodic heartbeats in secure participants (#6411))
292283
WriterHistory& history = *(endpoints->writer.history_);
293284
PDP::announceParticipantState(writer, history, new_change, dispose, wp);
294285

0 commit comments

Comments
 (0)