diff --git a/o3tl/qa/test-string_view.cxx b/o3tl/qa/test-string_view.cxx index a18a00ad71d9..80f757529eee 100644 --- a/o3tl/qa/test-string_view.cxx +++ b/o3tl/qa/test-string_view.cxx @@ -22,7 +22,7 @@ #include // gcc 11.2.0 triggers a spurious -Werror=stringop-overread -#if !(__GNUC__ == 11 && __GNUC_MINOR__ == 2) +#if !(defined __GNUC__ && __GNUC__ == 11 && __GNUC_MINOR__ == 2) namespace CppUnit {