Skip to content

Commit 227a2aa

Browse files
MiguelCompanymergify[bot]
authored andcommitted
Guard gnu::optimize with defined(__GNUC__) (#6080)
Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit e7625c3)
1 parent 34f95aa commit 227a2aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/rtps/flowcontrol/FlowControllerImpl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct FlowQueue
126126
}
127127

128128
// TODO: remove optimization with GCC > 15
129-
#if defined(__linux__)
129+
#if defined(__linux__) && defined(__GNUC__)
130130
[[gnu::optimize("no-delete-null-pointer-checks")]]
131131
#endif // if defined(__GNUC__)
132132
bool is_empty() const noexcept

0 commit comments

Comments
 (0)