]> err.no Git - varnish/commitdiff
Eliminate __unused.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Aug 2006 14:55:51 +0000 (14:55 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Aug 2006 14:55:51 +0000 (14:55 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@716 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_compile.c

index 576ea6b1b7484c8f8cba15d23ece248f455e56d2..b0ac93d3d1faed8fb4eeb51f940d6fbf84f02d54 100644 (file)
@@ -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;