summaryrefslogtreecommitdiff
path: root/doctest
diff options
context:
space:
mode:
authoronqtam <vik.kirilov@gmail.com>2017-03-17 11:18:45 +0200
committeronqtam <vik.kirilov@gmail.com>2017-05-16 00:22:15 +0300
commit8327c6c6f472ccc848ecdf0efbec002df910e484 (patch)
tree8cc0774fa15a32a75720236c37e1b88c4c4a0807 /doctest
parent246e81739928713a02f1ab9f748438d10f3e3911 (diff)
fixing clang builds on CI
Diffstat (limited to 'doctest')
-rw-r--r--doctest/doctest.h7
-rw-r--r--doctest/parts/doctest_fwd.h7
2 files changed, 14 insertions, 0 deletions
diff --git a/doctest/doctest.h b/doctest/doctest.h
index 01071f7..2e60fc9 100644
--- a/doctest/doctest.h
+++ b/doctest/doctest.h
@@ -1193,6 +1193,10 @@ namespace detail
#endif // DOCTEST_CONFIG_DISABLE
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wexit-time-destructors"
+#endif // __clang__
template<typename T>
int registerExceptionTranslator(String(*
#ifndef DOCTEST_CONFIG_DISABLE
@@ -1205,6 +1209,9 @@ int registerExceptionTranslator(String(*
#endif // DOCTEST_CONFIG_DISABLE
return 0;
}
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif // __clang__
class DOCTEST_INTERFACE Context
{
diff --git a/doctest/parts/doctest_fwd.h b/doctest/parts/doctest_fwd.h
index e13f8d9..51c708f 100644
--- a/doctest/parts/doctest_fwd.h
+++ b/doctest/parts/doctest_fwd.h
@@ -1190,6 +1190,10 @@ namespace detail
#endif // DOCTEST_CONFIG_DISABLE
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wexit-time-destructors"
+#endif // __clang__
template<typename T>
int registerExceptionTranslator(String(*
#ifndef DOCTEST_CONFIG_DISABLE
@@ -1202,6 +1206,9 @@ int registerExceptionTranslator(String(*
#endif // DOCTEST_CONFIG_DISABLE
return 0;
}
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif // __clang__
class DOCTEST_INTERFACE Context
{