From 2e991806056b71989af0dc874101137b410f4f47 Mon Sep 17 00:00:00 2001 From: neargye Date: Tue, 26 Mar 2019 12:54:48 +0500 Subject: [PATCH] fix warning --- test/test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.cpp b/test/test.cpp index 971faad..b386a27 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -210,9 +210,9 @@ TEST_CASE("NAMEOF_RAW") { } TEST_CASE("NAMEOF_ENUM") { +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) Color color_ = Color::BLUE; Color m[3] = {Color::RED, Color::GREEN, Color::BLUE}; -#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) REQUIRE(NAMEOF_ENUM(Color::RED) == "RED"); REQUIRE(NAMEOF_ENUM(color) == "RED"); @@ -227,9 +227,9 @@ TEST_CASE("NAMEOF_ENUM") { } TEST_CASE("nameof::nameof_enum(value)") { +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) Color color_ = Color::BLUE; Color m[3] = {Color::RED, Color::GREEN, Color::BLUE}; -#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) REQUIRE(nameof::nameof_enum(Color::RED) == "RED"); REQUIRE(nameof::nameof_enum(color) == "RED"); @@ -244,9 +244,9 @@ TEST_CASE("nameof::nameof_enum(value)") { } TEST_CASE("nameof::nameof_enum()") { +#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) constexpr Color color_ = Color::BLUE; constexpr Color m[3] = {Color::RED, Color::GREEN, Color::BLUE}; -#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 9) || defined(_MSC_VER) REQUIRE(nameof::nameof_enum() == "RED"); REQUIRE(nameof::nameof_enum() == "RED");