From 2b9e9f97801877db4f50c30054df92d6c3120f12 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 23 Dec 2020 23:26:54 +0100 Subject: [PATCH] test: Unit tests compilation fixed on gcc-10.1 --- test/unit_test/static/custom_rep_test_min_expl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit_test/static/custom_rep_test_min_expl.cpp b/test/unit_test/static/custom_rep_test_min_expl.cpp index 8d305309..8529f459 100644 --- a/test/unit_test/static/custom_rep_test_min_expl.cpp +++ b/test/unit_test/static/custom_rep_test_min_expl.cpp @@ -137,11 +137,11 @@ static_assert(QuantityValue>); static_assert(!QuantityValue>); static_assert(!QuantityValue>); static_assert(!QuantityValue>); -#if COMP_GCC == 10 && COMP_GCC_MINOR > 0 +#if !defined(COMP_GCC) || COMP_GCC > 10 || COMP_GCC_MINOR > 1 static_assert(!QuantityValue>); #endif static_assert(!QuantityValue>); -#if COMP_GCC == 10 && COMP_GCC_MINOR > 0 +#if !defined(COMP_GCC) || COMP_GCC > 10 || COMP_GCC_MINOR > 1 static_assert(!QuantityValue>); #endif static_assert(!QuantityValue>);