[master] cce5ff4 Silence unused-parameter warnings

Martin Blix Grydeland martin at varnish-software.com
Tue Feb 25 15:58:39 CET 2014


commit cce5ff42b190e541d095dae9ef3e74ae117d0ab3
Author: Guillaume Quintard <guillaume.quintard at gmail.com>
Date:   Tue Feb 4 15:41:09 2014 +0100

    Silence unused-parameter warnings

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 1705518..c838fef 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -192,6 +192,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 	unsigned tag, hit;
 	double value;
 	struct VSL_transaction *tr;
+	(void)priv;
 	for (tr = pt[0]; tr != NULL; tr = *++pt) {
 		value = -1;
 		hit = 0;
@@ -254,6 +255,7 @@ static void *
 do_curses(void *arg)
 {
 	int ch;
+	(void)arg;
 
 	initscr();
 	raw();



More information about the varnish-commit mailing list