diff --git a/src/babylon/any.cpp b/src/babylon/any.cpp index 50a77c5..1ebfb09 100644 --- a/src/babylon/any.cpp +++ b/src/babylon/any.cpp @@ -1,7 +1,9 @@ #include "babylon/any.h" #pragma clang diagnostic push +#if __clang__ #pragma clang diagnostic ignored "-Wc++20-designator" +#endif // __clang__ BABYLON_NAMESPACE_BEGIN diff --git a/src/babylon/any.h b/src/babylon/any.h index 4b444da..81d0241 100644 --- a/src/babylon/any.h +++ b/src/babylon/any.h @@ -5,7 +5,9 @@ #include // std::unique_ptr #pragma clang diagnostic push +#if __clang__ #pragma clang diagnostic ignored "-Wc++20-designator" +#endif // __clang__ BABYLON_NAMESPACE_BEGIN diff --git a/src/babylon/any.hpp b/src/babylon/any.hpp index e48c38c..72c576d 100644 --- a/src/babylon/any.hpp +++ b/src/babylon/any.hpp @@ -9,7 +9,9 @@ #include // ::assert #pragma clang diagnostic push +#if __clang__ #pragma clang diagnostic ignored "-Wc++20-designator" +#endif // __clang__ BABYLON_NAMESPACE_BEGIN diff --git a/src/babylon/logging/async_file_appender.cpp b/src/babylon/logging/async_file_appender.cpp index 61cb7a1..a2905a4 100644 --- a/src/babylon/logging/async_file_appender.cpp +++ b/src/babylon/logging/async_file_appender.cpp @@ -5,7 +5,9 @@ #include #pragma clang diagnostic push +#if __clang__ #pragma clang diagnostic ignored "-Wc++20-designator" +#endif // __clang__ BABYLON_NAMESPACE_BEGIN diff --git a/src/babylon/logging/log_entry.cpp b/src/babylon/logging/log_entry.cpp index 5af4371..6c76d56 100644 --- a/src/babylon/logging/log_entry.cpp +++ b/src/babylon/logging/log_entry.cpp @@ -1,7 +1,9 @@ #include "babylon/logging/log_entry.h" #pragma clang diagnostic push +#if __clang__ #pragma clang diagnostic ignored "-Wc++20-designator" +#endif // __clang__ BABYLON_NAMESPACE_BEGIN diff --git a/src/babylon/logging/log_severity.h b/src/babylon/logging/log_severity.h index 6f1230c..8963073 100644 --- a/src/babylon/logging/log_severity.h +++ b/src/babylon/logging/log_severity.h @@ -34,7 +34,9 @@ class LogSeverity { int8_t _value {DEBUG}; #pragma clang diagnostic push +#if __clang__ #pragma clang diagnostic ignored "-Wc99-designator" +#endif // __clang__ static constexpr StringView names[NUM] = { [DEBUG] = "DEBUG", [INFO] = "INFO",