1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

Avoid EDG deprecation warnings for LCC compiler

This commit is contained in:
makise-homura
2023-11-09 02:04:15 +03:00
committed by Igor Molchanov
parent c1e9f761e0
commit 6bc86405d1
2 changed files with 9 additions and 2 deletions

View File

@@ -65,7 +65,10 @@
/*
* Macros to ignore deprecation warnings
*/
#if defined(__clang__) || \
#if defined(__LCC__)
#define XML_IGNORE_DEPRECATION_WARNINGS \
_Pragma("diag_suppress 1215")
#elif defined(__clang__) || \
(defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406))
#define XML_IGNORE_DEPRECATION_WARNINGS \
_Pragma("GCC diagnostic push") \