From 2969fb7463007c4f1b8bd6e1cb2086c814865e7d Mon Sep 17 00:00:00 2001 From: des Date: Mon, 7 Aug 2006 14:55:51 +0000 Subject: [PATCH] Eliminate __unused. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@716 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_compile.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/varnish-cache/lib/libvcl/vcc_compile.c b/varnish-cache/lib/libvcl/vcc_compile.c index 576ea6b1..b0ac93d3 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.c +++ b/varnish-cache/lib/libvcl/vcc_compile.c @@ -401,12 +401,14 @@ DoubleVal(struct tokenlist *tl) /*--------------------------------------------------------------------*/ static struct var * -HeaderVar(struct tokenlist *tl __unused, struct token *t, struct var *vh) +HeaderVar(struct tokenlist *tl, struct token *t, struct var *vh) { char *p; struct var *v; int i; + (void)tl; + v = calloc(sizeof *v, 1); assert(v != NULL); i = t->e - t->b; @@ -1474,19 +1476,23 @@ VCC_CompileFile(struct vsb *sb, const char *fn) /*--------------------------------------------------------------------*/ static int -VCC_T_render(FILE *f, const struct printf_info *info __unused, const void *const *args) +VCC_T_render(FILE *f, const struct printf_info *info, const void *const *args) { const struct token *t; + (void)info; + t = *((const struct token * const*) (args[0])); return (fprintf(f, "%*.*s", t->e - t->b, t->e - t->b, t->b)); } static int -VCC_T_arginfo(const struct printf_info *info __unused, size_t n, int *argtypes) +VCC_T_arginfo(const struct printf_info *info, size_t n, int *argtypes) { + (void)info; + if (n > 0) argtypes[0] = PA_POINTER; return 1; -- 2.39.5