From 5b885e5851707f8db0e85bbf024af155c7d6b504 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sat, 28 Jun 2025 00:08:46 -0700 Subject: [PATCH] nv2a/gl: Add format attr to gl_debug_* --- hw/xbox/nv2a/pgraph/gl/debug.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xbox/nv2a/pgraph/gl/debug.h b/hw/xbox/nv2a/pgraph/gl/debug.h index 1220244da8..14f43eb394 100644 --- a/hw/xbox/nv2a/pgraph/gl/debug.h +++ b/hw/xbox/nv2a/pgraph/gl/debug.h @@ -32,10 +32,10 @@ #include "config-host.h" void gl_debug_initialize(void); -void gl_debug_message(bool cc, const char *fmt, ...); -void gl_debug_group_begin(const char *fmt, ...); +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_group_end(void); -void gl_debug_label(GLenum target, GLuint name, const char *fmt, ...); +void gl_debug_label(GLenum target, GLuint name, const char *fmt, ...) __attribute__ ((format (printf, 3, 4))); void gl_debug_frame_terminator(void); # define NV2A_GL_DPRINTF(cc, format, ...) \