From 3bfd01c34de3f198f3c4a88125d98ee0f32e15c7 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 10 Jul 2006 09:48:26 +0000 Subject: [PATCH] Fix cosmetic warnings git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@397 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvarnish/time.c | 2 ++ varnish-cache/lib/libvcl/vcl_compile.c | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/varnish-cache/lib/libvarnish/time.c b/varnish-cache/lib/libvarnish/time.c index 95519227..aaa5b4e5 100644 --- a/varnish-cache/lib/libvarnish/time.c +++ b/varnish-cache/lib/libvarnish/time.c @@ -23,6 +23,8 @@ #include #include +#include "libvarnish.h" + void TIM_format(time_t t, char *p) { diff --git a/varnish-cache/lib/libvcl/vcl_compile.c b/varnish-cache/lib/libvcl/vcl_compile.c index c0b22243..ad384915 100644 --- a/varnish-cache/lib/libvcl/vcl_compile.c +++ b/varnish-cache/lib/libvcl/vcl_compile.c @@ -647,8 +647,9 @@ IpVal(struct tokenlist *tl) } /*--------------------------------------------------------------------*/ + static struct var * -HeaderVar(struct tokenlist *tl, struct token *t, struct var *vh) +HeaderVar(struct tokenlist *tl __unused, struct token *t, struct var *vh) { char *p; struct var *v; @@ -1847,18 +1848,18 @@ VCC_CompileFile(struct sbuf *sb, const char *fn) /*--------------------------------------------------------------------*/ -int -VCC_T_render(FILE *f, const struct printf_info *info, const void *const *args) +static int +VCC_T_render(FILE *f, const struct printf_info *info __unused, const void *const *args) { const struct token *t; - t = *((const struct token **) (args[0])); + t = *((const struct token * const*) (args[0])); return (fprintf(f, "%*.*s", t->e - t->b, t->e - t->b, t->b)); } -int -VCC_T_arginfo(const struct printf_info *info, size_t n, int *argtypes) +static int +VCC_T_arginfo(const struct printf_info *info __unused, size_t n, int *argtypes) { if (n > 0) -- 2.39.5