Add missing #if for clang

release/4.3a0
Jose Luis Blanco-Claraco 2024-11-06 09:51:06 +01:00 committed by Fan Jiang
parent a0f4955431
commit 9535ae2fc9
1 changed files with 4 additions and 1 deletions

View File

@ -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 {
@ -417,5 +419,6 @@ namespace gtsam {
} // \namespace gtsam
#if defined(__clang__)
#pragma clang diagnostic pop
#endif