diff options
Diffstat (limited to 'cpp/test/Ice/optional/StringView.h')
-rw-r--r-- | cpp/test/Ice/optional/StringView.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Ice/optional/StringView.h b/cpp/test/Ice/optional/StringView.h index 5e642f57153..cf44dcc7108 100644 --- a/cpp/test/Ice/optional/StringView.h +++ b/cpp/test/Ice/optional/StringView.h @@ -11,7 +11,7 @@ // COMPILERFIX: G++ false positive "maybe-uninitialized" warnings when using // string_view with Ice::optional in C++17 mode. // -#if defined(__GNUC__) && ICE_CPLUSPLUS >= 201703L +#if defined(__GNUC__) && !defined(__clang__) && ICE_CPLUSPLUS >= 201703L # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #endif @@ -190,7 +190,7 @@ struct StreamHelper<Util::string_view, StreamHelperCategoryBuiltin> } -#if defined(__GNUC__) && ICE_CPLUSPLUS >= 201703L +#if defined(__GNUC__) && !defined(__clang__) && ICE_CPLUSPLUS >= 201703L # pragma GCC diagnostic pop #endif |