Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorCorentin Jabot2020-07-08 18:00:24 +0200
committerMartin Hořeňovský2020-07-09 12:24:25 +0200
commit2cd5e70012d565fc2cbb94c10d1254b18a7532e1 (patch)
tree55fc21d39e36c3b050743b4b5d5fa4436c346181 /src/catch2/internal
parent392e44ec21bd325883a2783349ad16a05f94742c (diff)
downloadcatch3-2cd5e70012d565fc2cbb94c10d1254b18a7532e1.tar.gz
Silence a -Wsign-conversio warning in Clara under GCC
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_clara.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/catch2/internal/catch_clara.hpp b/src/catch2/internal/catch_clara.hpp
index 2319792f..633db558 100644
--- a/src/catch2/internal/catch_clara.hpp
+++ b/src/catch2/internal/catch_clara.hpp
@@ -25,12 +25,21 @@
#pragma clang diagnostic ignored "-Wdeprecated"
#endif
+#if defined(__GNUC__)
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wsign-conversion"
+#endif
+
#include <catch2/internal/catch_clara_upstream.hpp>
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
+#if defined(__GNUC__)
+ #pragma GCC diagnostic pop
+#endif
+
// Restore Clara's value for console width, if present
#ifdef CATCH_TEMP_CLARA_CONFIG_CONSOLE_WIDTH