clang: don't use gnu_printf attribute

This should stop a lot of warning spam on any clang install, not just macOS/FreeBSD

Signed-off-by: John Studnicka <contact@zentec.dev>
This commit is contained in:
John Studnicka
2026-03-16 00:47:29 -07:00
committed by Enrico Weigelt
parent 3ad7e030ce
commit 06467f469f

View File

@@ -71,7 +71,7 @@ SOFTWARE.
#endif
#ifndef _X_ATTRIBUTE_VPRINTF
# if defined(__GNUC__) && (__GNUC__ >= 2) && (!defined(__APPLE__)) && (!defined(__FreeBSD__))
# if defined(__GNUC__) && (__GNUC__ >= 2) && !defined(__clang__)
# define _X_ATTRIBUTE_VPRINTF(fmt, firstarg) \
__attribute__((__format__(gnu_printf, fmt, firstarg)))
# else