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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/catch_tostring.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-05-15 12:02:02 +0200
committerMartin Hořeňovský2021-05-18 00:17:32 +0200
commit4cc247cc700f105ea69a4427e3527cdbd4394257 (patch)
tree1b891c18bc84e4d227e6819286c681d0372205c1 /src/catch2/catch_tostring.cpp
parent8ee422d6bf7c055004d937f98e0628e62473b92d (diff)
downloadcatch3-4cc247cc700f105ea69a4427e3527cdbd4394257.tar.gz
Use constexpr StringRef instance for unprintable strings
Diffstat (limited to 'src/catch2/catch_tostring.cpp')
-rw-r--r--src/catch2/catch_tostring.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/catch2/catch_tostring.cpp b/src/catch2/catch_tostring.cpp
index 8b0ffe01..775d4a77 100644
--- a/src/catch2/catch_tostring.cpp
+++ b/src/catch2/catch_tostring.cpp
@@ -5,12 +5,6 @@
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
-#if defined(__clang__)
-# pragma clang diagnostic push
-# pragma clang diagnostic ignored "-Wexit-time-destructors"
-# pragma clang diagnostic ignored "-Wglobal-constructors"
-#endif
-
#include <catch2/catch_tostring.hpp>
#include <catch2/interfaces/catch_interfaces_config.hpp>
@@ -24,8 +18,6 @@ namespace Catch {
namespace Detail {
- const std::string unprintableString = "{?}";
-
namespace {
const int hexThreshold = 255;
@@ -237,8 +229,3 @@ std::string StringMaker<double>::convert(double value) {
}
} // end namespace Catch
-
-#if defined(__clang__)
-# pragma clang diagnostic pop
-#endif
-