From cc04c56a4ab1aee344cff533e788d4eb2318ee2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20R=C3=A5de?= Date: Tue, 26 Nov 2024 20:44:00 +0100 Subject: [PATCH] Fixed Visual Studio compiler warning Replaced #if defined(__GNUC__) by #if defined(__GNUC__) || defined(__clang__) --- include/gtl/vector.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gtl/vector.hpp b/include/gtl/vector.hpp index 4f123aa..7c9c9de 100644 --- a/include/gtl/vector.hpp +++ b/include/gtl/vector.hpp @@ -1311,12 +1311,12 @@ class vector { impl_.e_ += n; } else { if constexpr (std::is_trivially_copyable_v && usingStdAllocator) { -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnonnull" // disable erroneous warning #endif std::memmove((void*)(position + n), (void*)position, tail * sizeof(T)); -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic pop #endif impl_.e_ += n;