summaryrefslogtreecommitdiff
path: root/src/utils/xml/libxml.cpp
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-04-15 21:51:30 +0000
committerFedja Beader <fedja@protonmail.ch>2025-04-15 21:51:30 +0000
commitebb8e8dfc6c0b902227c78b82819db060268eb63 (patch)
treedcc1497f50727c008dd9b9f2646e84942c785f73 /src/utils/xml/libxml.cpp
parent46e7eb648e9121b53c274b69ddb3301877fc480d (diff)
downloadmanaplus-ebb8e8dfc6c0b902227c78b82819db060268eb63.tar.gz
manaplus-ebb8e8dfc6c0b902227c78b82819db060268eb63.tar.bz2
manaplus-ebb8e8dfc6c0b902227c78b82819db060268eb63.tar.xz
manaplus-ebb8e8dfc6c0b902227c78b82819db060268eb63.zip
logger.h: de-duplicate __attribute__(__format__(..)) ifdefs
Squashed with: * Rename - it's member shift, not printf shift * So it seems that CILK PLUS either ignores the this argument of member functions or already considers it on its own. Besides.. is CILK PLUS even relevant today? Whatever.. Plus, deduplicate some more functions ..should this attribute be moved to its own file? * Correct indents * logger.h: de-duplicate __attribute__(__format__(..)) **** mana/plus!163
Diffstat (limited to 'src/utils/xml/libxml.cpp')
-rw-r--r--src/utils/xml/libxml.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/utils/xml/libxml.cpp b/src/utils/xml/libxml.cpp
index cc49a6012..97d2db58c 100644
--- a/src/utils/xml/libxml.cpp
+++ b/src/utils/xml/libxml.cpp
@@ -44,14 +44,7 @@ namespace
} // namespace
static void xmlErrorLogger(void *ctx A_UNUSED, const char *msg A_UNUSED, ...)
-#ifdef __GNUC__
-#ifdef __OpenBSD__
- __attribute__((__format__(printf, 2, 3)))
-#else // __OpenBSD__
- __attribute__((__format__(gnu_printf, 2, 3)))
-#endif // __OpenBSD__
-#endif // __GNUC__
-;
+ A_FORMAT_PRINTF(false, 2, 3);
static void xmlErrorLogger(void *ctx A_UNUSED, const char *msg, ...)
{