mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 06:46:10 +01:00
Update catch_template_test_macros.hpp
This commit is contained in:
parent
2487da6f9f
commit
978c5b72aa
@ -6,7 +6,10 @@
|
|||||||
// SPDX-License-Identifier: BSL-1.0
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
#ifndef CATCH_TEMPLATE_TEST_MACROS_HPP_INCLUDED
|
#ifndef CATCH_TEMPLATE_TEST_MACROS_HPP_INCLUDED
|
||||||
#define CATCH_TEMPLATE_TEST_MACROS_HPP_INCLUDED
|
#define CATCH_TEMPLATE_TEST_MACROS_HPP_INCLUDED
|
||||||
|
// We need this suppression to leak, because it took until GCC 10
|
||||||
|
// for the front end to handle local suppression via _Pragma properly
|
||||||
|
// inside templates (so `TEMPLATE_TEST_CASE` and co).
|
||||||
|
// **THIS IS DIFFERENT FOR STANDARD TESTS, WHERE GCC 9 IS SUFFICIENT**
|
||||||
#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && __GNUC__ < 10
|
#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && __GNUC__ < 10
|
||||||
#pragma GCC diagnostic ignored "-Wparentheses"
|
#pragma GCC diagnostic ignored "-Wparentheses"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user