From 06467f469faba9b7246d40fb536005a470ee14c3 Mon Sep 17 00:00:00 2001 From: John Studnicka Date: Mon, 16 Mar 2026 00:47:29 -0700 Subject: [PATCH] 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 --- include/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/os.h b/include/os.h index 360bb793fc..8ef9094942 100644 --- a/include/os.h +++ b/include/os.h @@ -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