[master] cfaa81d remove unused __VA_ARGS__

Nils Goroll nils.goroll at uplex.de
Mon Aug 22 15:57:12 CEST 2016


commit cfaa81dd9a5f74510aea22884a4340a80db7abdb
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