Wrap __attribute__s in macros

This commit is contained in:
Tim Angus committed 2025-09-07 17:16:31 +01:00
1 parent f976711fb4
commit 07b9c1bd83
33 files changed
+88 -114

No files matched your search

+2 -2
View File
@@ -255,7 +255,7 @@ void String_Init(void) {
PC_SourceWarning
=================
*/
static __attribute__ ((format (printf, 2, 3))) void PC_SourceWarning(int handle, char *format, ...) {
static Q_PRINTF_FUNC(2, 3) void PC_SourceWarning(int handle, char *format, ...) {
int line;
char filename[128];
va_list argptr;
@@ -278,7 +278,7 @@ static __attribute__ ((format (printf, 2, 3))) void PC_SourceWarning(int handle,
PC_SourceError
=================
*/
static __attribute__ ((format (printf, 2, 3))) void PC_SourceError(int handle, char *format, ...) {
static Q_PRINTF_FUNC(2, 3) void PC_SourceError(int handle, char *format, ...) {
int line;
char filename[128];
va_list argptr;