Add clang compiler flag. (see #2094)

This commit is contained in:
HoseynHeydari
2022-04-14 16:46:59 +04:30
parent bd0ee6adbe
commit c665fd7f50
25 changed files with 80 additions and 49 deletions

View File

@@ -10,6 +10,8 @@
#include <sstream>
#include <cstdio>
#include <catch2/internal/catch_compiler_capabilities.hpp>
class out_buff : public std::stringbuf {
std::FILE* m_stream;
public:
@@ -31,7 +33,7 @@ public:
out_buff::~out_buff() { pubsync(); }
#if defined(__clang__)
#if defined(CATCH_COMPILER_CLANG)
#pragma clang diagnostic ignored "-Wexit-time-destructors" // static variables in cout/cerr/clog
#endif