Skip to content

Commit f801fb2

Browse files
committed
Add attribute format printf for Q_vsnprintf
1 parent 2063497 commit f801fb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/qcommon/q_shared.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ typedef int intptr_t;
187187
#ifdef _WIN32
188188
// vsnprintf is ISO/IEC 9899:1999
189189
// abstracting this to make it portable
190-
int Q_vsnprintf(char *str, size_t size, const char *format, va_list ap);
190+
int Q_vsnprintf(char *str, size_t size, const char *format, va_list ap) __attribute__((format(printf, 3, 0)));
191191
#else
192192
#define Q_vsnprintf vsnprintf
193193
#endif

0 commit comments

Comments
 (0)