From 7e5ef855d2371b923e0410929447b9fd854ca1af Mon Sep 17 00:00:00 2001 From: Arjan Molenaar Date: Fri, 3 Oct 2025 13:05:25 +0200 Subject: [PATCH] Fix varargs indicator for PyBytesWriter_Format --- pythoncapi_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythoncapi_compat.h b/pythoncapi_compat.h index 791d511..6a7037e 100644 --- a/pythoncapi_compat.h +++ b/pythoncapi_compat.h @@ -2531,7 +2531,7 @@ PyBytesWriter_WriteBytes(PyBytesWriter *writer, static inline int PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...) - Py_GCC_ATTRIBUTE((format(printf, 2, 0))); + Py_GCC_ATTRIBUTE((format(printf, 2, 3))); static inline int PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...)