[4.1] 8c9f875 remove unused __VA_ARGS__
PÃ¥l Hermunn Johansen
hermunn at varnish-software.com
Mon Sep 12 15:48:16 CEST 2016
commit 8c9f8757288964756a256599a673e2b026e092b4
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Aug 22 15:49:27 2016 +0200
remove unused __VA_ARGS__
The P macro is only ever called with one argument and Solaris cc
rightly emits E_ARGUEMENT_MISMATCH (yes, with the typo)
diff --git a/bin/varnishstat/vsc2rst.c b/bin/varnishstat/vsc2rst.c
index 2aaa16d..f955b78 100644
--- a/bin/varnishstat/vsc2rst.c
+++ b/bin/varnishstat/vsc2rst.c
@@ -36,8 +36,8 @@
#include "tbl/vsc_levels.h"
#undef VSC_LEVEL_F
-#define P(x, ...) \
- printf(x "\n", ##__VA_ARGS__)
+#define P(x) \
+ printf(x "\n")
#define VSC_LEVEL_F(v,l,e,d) \
printf("%s – %s\n\t%s\n\n", l, e, d);
#define VSC_F(n, t, l, s, f, v, d, e) \
More information about the varnish-commit
mailing list