From 8327c6c6f472ccc848ecdf0efbec002df910e484 Mon Sep 17 00:00:00 2001 From: onqtam Date: Fri, 17 Mar 2017 11:18:45 +0200 Subject: fixing clang builds on CI --- doctest/doctest.h | 7 +++++++ doctest/parts/doctest_fwd.h | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'doctest') 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 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 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 { -- cgit v1.2.3