From 8a9df15dd05d6469442d26a244bfff6fbb6228bb Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sat, 21 Jun 2025 15:07:12 +0200 Subject: [PATCH] CLang advertises C++-26 features but warns us when we use them :/. --- source/mijin/internal/version_support.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/mijin/internal/version_support.hpp b/source/mijin/internal/version_support.hpp index 730f57c..5043880 100644 --- a/source/mijin/internal/version_support.hpp +++ b/source/mijin/internal/version_support.hpp @@ -4,6 +4,12 @@ #if !defined(MIJIN_INTERNAL_VERSION_SUPPORT_HPP_INCLUDED) #define MIJIN_INTERNAL_VERSION_SUPPORT_HPP_INCLUDED 1 +#include "../detect.hpp" + +#if MIJIN_COMPILER == MIJIN_COMPILER_CLANG +#pragma clang diagnostic ignored "-Wc++26-extensions" +#endif + #if defined(__cpp_deleted_function) #define MIJIN_DELETE(reason) = delete(reason) #else