From 3b13aed14ce6350c0cbd7696799b041037c91ece Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Mon, 16 Feb 2026 02:14:34 -0700 Subject: [PATCH] nv2a/gl: Use G_GNUC_PRINTF macro for debug function printf attribute --- hw/xbox/nv2a/pgraph/gl/debug.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/xbox/nv2a/pgraph/gl/debug.h b/hw/xbox/nv2a/pgraph/gl/debug.h index 14f43eb394..46caffb647 100644 --- a/hw/xbox/nv2a/pgraph/gl/debug.h +++ b/hw/xbox/nv2a/pgraph/gl/debug.h @@ -30,12 +30,13 @@ #include #include "gloffscreen.h" #include "config-host.h" +#include void gl_debug_initialize(void); -void gl_debug_message(bool cc, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); -void gl_debug_group_begin(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); +void gl_debug_message(bool cc, const char *fmt, ...) G_GNUC_PRINTF(2, 3); +void gl_debug_group_begin(const char *fmt, ...) G_GNUC_PRINTF(1, 2); void gl_debug_group_end(void); -void gl_debug_label(GLenum target, GLuint name, const char *fmt, ...) __attribute__ ((format (printf, 3, 4))); +void gl_debug_label(GLenum target, GLuint name, const char *fmt, ...) G_GNUC_PRINTF(3, 4); void gl_debug_frame_terminator(void); # define NV2A_GL_DPRINTF(cc, format, ...) \