Skip to content

Commit

Permalink
Add missing #if for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc authored and ProfFan committed Nov 6, 2024
1 parent a0f4955 commit 9535ae2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gtsam/linear/VectorValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
#include <utility>

// assert_throw needs a semicolon in Release mode.
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wextra-semi-stmt"
#endif

namespace gtsam {

Expand Down Expand Up @@ -417,5 +419,6 @@ namespace gtsam {

} // \namespace gtsam

#if defined(__clang__)
#pragma clang diagnostic pop

#endif

0 comments on commit 9535ae2

Please sign in to comment.