diff --git a/src/cpp/rtps/flowcontrol/FlowControllerImpl.hpp b/src/cpp/rtps/flowcontrol/FlowControllerImpl.hpp index 7a15c8bb655..1060bd941aa 100644 --- a/src/cpp/rtps/flowcontrol/FlowControllerImpl.hpp +++ b/src/cpp/rtps/flowcontrol/FlowControllerImpl.hpp @@ -1291,15 +1291,19 @@ class FlowControllerImpl : public FlowController change->writer_info.is_linked.store(false); } } +#if HAVE_STRICT_REALTIME else { ret_value = !change->writer_info.is_linked.load(); } +#endif // if HAVE_STRICT_REALTIME } +#if HAVE_STRICT_REALTIME else { ret_value = !change->writer_info.is_linked.load(); } +#endif // if HAVE_STRICT_REALTIME --async_mode.writers_interested_in_remove; }