[master] 23e7ff8ab Ignore unused argument

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Nov 28 07:22:05 UTC 2019


commit 23e7ff8ab216793397a9cd3b3360119fa486d176
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Thu Nov 28 08:21:30 2019 +0100

    Ignore unused argument

diff --git a/lib/libvcc/vcc_vmod.c b/lib/libvcc/vcc_vmod.c
index 2ff90ad31..dca8eabd8 100644
--- a/lib/libvcc/vcc_vmod.c
+++ b/lib/libvcc/vcc_vmod.c
@@ -389,6 +389,8 @@ vcc_Act_New(struct vcc *tl, struct token *t, struct symbol *sym)
 	int null_ok = 0;
 
 	(void)sym;
+	(void)t;
+
 	ExpectErr(tl, ID);
 	vcc_ExpectVid(tl, "VCL object");
 	ERRCHK(tl);
@@ -401,7 +403,6 @@ vcc_Act_New(struct vcc *tl, struct token *t, struct symbol *sym)
 	vcc_NextToken(tl);
 
 	ExpectErr(tl, ID);
-	t = tl->t;
 	sy2 = VCC_SymbolGet(tl, SYM_OBJECT, SYMTAB_EXISTING, XREF_NONE);
 	ERRCHK(tl);
 	AN(sy2);


More information about the varnish-commit mailing list