From 0fa135a2db3cd1c47861b291eb18a32ce7c16f20 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Wed, 3 May 2006 22:53:50 +0000 Subject: [PATCH] va_list argument is never useful at compile time git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2345 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/port.h | 4 ++-- sc2/src/sc2code/libs/log/uqmlog.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sc2/src/port.h b/sc2/src/port.h index f9ce3c313..754fdfa9f 100644 --- a/sc2/src/port.h +++ b/sc2/src/port.h @@ -164,11 +164,11 @@ typedef unsigned int wint_t; #ifdef __GNUC__ # define PRINTF_FUNCTION(formatArg, firstArg) \ __attribute__((format(printf, formatArg, firstArg))) -# define VPRINTF_FUNCTION(formatArg, arglist) \ +# define VPRINTF_FUNCTION(formatArg) \ __attribute__((format(printf, formatArg, 0))) #else # define PRINTF_FUNCTION(formatArg, firstArg) -# define VPRINTF_FUNCTION(formatArg, arglist) +# define VPRINTF_FUNCTION(formatArg) #endif #endif /* _PORT_H */ diff --git a/sc2/src/sc2code/libs/log/uqmlog.h b/sc2/src/sc2code/libs/log/uqmlog.h index 79bc79e22..899b77153 100755 --- a/sc2/src/sc2code/libs/log/uqmlog.h +++ b/sc2/src/sc2code/libs/log/uqmlog.h @@ -47,11 +47,11 @@ typedef enum extern void log_add (log_Level, const char *fmt, ...) PRINTF_FUNCTION(2, 3); extern void log_addV (log_Level, const char *fmt, va_list) - VPRINTF_FUNCTION(2, 3); + VPRINTF_FUNCTION(2); extern void log_add_nothread (log_Level, const char *fmt, ...) PRINTF_FUNCTION(2, 3); extern void log_add_nothreadV (log_Level, const char *fmt, va_list) - VPRINTF_FUNCTION(2, 3); + VPRINTF_FUNCTION(2); #endif /* _UQMLOG_H */