conditionally undefine ARMA_IGNORE_DEPRECATED_MARKER

This commit is contained in:
conrad
2025-05-15 13:33:25 +10:00
parent 5d93b06328
commit 25f6093cef
+11 -1
View File
@@ -172,6 +172,10 @@
#pragma message("INFO: support for GCC versions older than 8.1 is deprecated"
#endif
#if (ARMA_GCC_VERSION >= 170000)
#undef ARMA_IGNORE_DEPRECATED_MARKER
#endif
#define ARMA_GOOD_COMPILER
#undef arma_hot
@@ -229,6 +233,12 @@
// #pragma message ("using Clang extensions")
#if defined(__clang_major__) && !defined(__apple_build_version__)
#if (__clang_major__ >= 24)
#undef ARMA_IGNORE_DEPRECATED_MARKER
#endif
#endif
#define ARMA_GOOD_COMPILER
#if !defined(__has_attribute)
@@ -477,7 +487,7 @@
#undef major
// WARNING: option 'ARMA_IGNORE_DEPRECATED_MARKER' will be removed;
// WARNING: option 'ARMA_IGNORE_DEPRECATED_MARKER' is not supported when compiling with gcc 17+ or clang 24+
// WARNING: disabling deprecation messages is counter-productive
#if defined(ARMA_IGNORE_DEPRECATED_MARKER)