From c805a5033c49382151a50d87d78e38248eafe363 Mon Sep 17 00:00:00 2001 From: Dmitrii Zarukin Date: Mon, 25 Nov 2024 15:35:05 -0800 Subject: [PATCH] fixup: common: utils: array_copy: remove specific diagnostics from the function --- src/common/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils.hpp b/src/common/utils.hpp index dfed3dc67e7..e96344aef03 100644 --- a/src/common/utils.hpp +++ b/src/common/utils.hpp @@ -229,7 +229,7 @@ inline void array_copy(T *dst, const T *src, size_t size) { for (size_t i = 0; i < size; ++i) dst[i] = src[i]; } -#if defined(__GNUC__) && !defined(__clang__) +#if defined(__GNUC__) && __GNUC__ > 8 && !defined(__clang__) #pragma GCC diagnostic pop #endif