>From eeb696c4c12c0c6ccf967eb5666cb321f5ec8d0c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
Date: Sat, 18 Jan 2014 10:31:21 +0100
Subject: [PATCH] gcc2 fix : whitespace before last comma in varargs macro
gcc2 doesn't seem to see the last comma before the ## args
unless it's separated from the previous arg by a whitespace.
---
src/options.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/options.h b/src/options.h
index 13c02be..9ccaa3a 100644
--- a/src/options.h
+++ b/src/options.h
@@ -36,7 +36,7 @@ enum opt_warnings {
#define WARN(flags, msg, args...) do { \
if ((options->warnings & flags) != 0) { \
- fprintf(stderr, "%s: warning:"msg"\n", __func__, ## args); \
+ fprintf(stderr, "%s: warning:"msg"\n", __func__ , ## args); \
} \
} while(0)
--
1.8.3.4
gcc2 doesn't seem to see the last comma before the ## args
unless it's separated from the previous arg by a whitespace.
François.
No comments:
Post a Comment