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
This commit is contained in:
+2
-2
@@ -164,11 +164,11 @@ typedef unsigned int wint_t;
|
|||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
# define PRINTF_FUNCTION(formatArg, firstArg) \
|
# define PRINTF_FUNCTION(formatArg, firstArg) \
|
||||||
__attribute__((format(printf, formatArg, firstArg)))
|
__attribute__((format(printf, formatArg, firstArg)))
|
||||||
# define VPRINTF_FUNCTION(formatArg, arglist) \
|
# define VPRINTF_FUNCTION(formatArg) \
|
||||||
__attribute__((format(printf, formatArg, 0)))
|
__attribute__((format(printf, formatArg, 0)))
|
||||||
#else
|
#else
|
||||||
# define PRINTF_FUNCTION(formatArg, firstArg)
|
# define PRINTF_FUNCTION(formatArg, firstArg)
|
||||||
# define VPRINTF_FUNCTION(formatArg, arglist)
|
# define VPRINTF_FUNCTION(formatArg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _PORT_H */
|
#endif /* _PORT_H */
|
||||||
|
|||||||
@@ -47,11 +47,11 @@ typedef enum
|
|||||||
extern void log_add (log_Level, const char *fmt, ...)
|
extern void log_add (log_Level, const char *fmt, ...)
|
||||||
PRINTF_FUNCTION(2, 3);
|
PRINTF_FUNCTION(2, 3);
|
||||||
extern void log_addV (log_Level, const char *fmt, va_list)
|
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, ...)
|
extern void log_add_nothread (log_Level, const char *fmt, ...)
|
||||||
PRINTF_FUNCTION(2, 3);
|
PRINTF_FUNCTION(2, 3);
|
||||||
extern void log_add_nothreadV (log_Level, const char *fmt, va_list)
|
extern void log_add_nothreadV (log_Level, const char *fmt, va_list)
|
||||||
VPRINTF_FUNCTION(2, 3);
|
VPRINTF_FUNCTION(2);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _UQMLOG_H */
|
#endif /* _UQMLOG_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user