diff --git a/test/SerialIOTest.cpp b/test/SerialIOTest.cpp index 5cf48f8eb8..aa3de84b43 100644 --- a/test/SerialIOTest.cpp +++ b/test/SerialIOTest.cpp @@ -417,7 +417,7 @@ TEST_CASE("multiple_series_handles_test", "[serial]") /* * clang also understands these pragmas. */ -#if defined(__GNUC__MINOR__) || defined(__clang__) +#if defined(__GNUC_MINOR__) || defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif