From 9535ae2fc974a61fe52a0312439c64b6e71cfdad Mon Sep 17 00:00:00 2001 From: Jose Luis Blanco-Claraco Date: Wed, 6 Nov 2024 09:51:06 +0100 Subject: [PATCH] Add missing #if for clang --- gtsam/linear/VectorValues.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtsam/linear/VectorValues.cpp b/gtsam/linear/VectorValues.cpp index 7440c0b2b0..52e2fac227 100644 --- a/gtsam/linear/VectorValues.cpp +++ b/gtsam/linear/VectorValues.cpp @@ -22,8 +22,10 @@ #include // 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