From 151571cb3fb285982b0e9f177eee35d3b727e8cd Mon Sep 17 00:00:00 2001 From: flagarde Date: Tue, 14 May 2024 13:09:01 +0800 Subject: [PATCH] try warning supress --- include/Khaos/Version.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/Khaos/Version.h b/include/Khaos/Version.h index 6eb58a3..b041570 100644 --- a/include/Khaos/Version.h +++ b/include/Khaos/Version.h @@ -10,6 +10,10 @@ #ifndef KHAOS_VERSION_H_ #define KHAOS_VERSION_H_ +#if defined(__clang__) + #pragma clang diagnostic push +#endif + /*! * \file Version.h * \brief Define macros to set, get versions. @@ -81,4 +85,9 @@ */ #define GET_VERSION_TWEAK(name) (((KHAOS_DEFINE_##name##_VERSION_PRIVATE()) * 1ULL) % (1 << 16)) /* //NOSONAR */ +#if defined(__clang__) + #pragma clang diagnostic ignored "-Wc++98-compat-pedantic" + #pragma clang diagnostic pop +#endif + #endif /* KHAOS_VERSION_H_ */