We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0822f4a commit 2378c75Copy full SHA for 2378c75
1 file changed
src/cpp/rtps/flowcontrol/FlowControllerImpl.hpp
@@ -126,7 +126,10 @@ struct FlowQueue
126
}
127
128
// TODO: remove optimization with GCC > 15
129
- [[gnu::optimize("no-delete-null-pointer-checks")]] bool is_empty() const noexcept
+ #if defined(__linux__)
130
+ [[gnu::optimize("no-delete-null-pointer-checks")]]
131
+ #endif // if defined(__GNUC__)
132
+ bool is_empty() const noexcept
133
{
134
assert((&tail == head.writer_info.next && &head == tail.writer_info.previous) ||
135
(&tail != head.writer_info.next && &head != tail.writer_info.previous));
0 commit comments