From: David Woodhouse Date: Mon, 15 Oct 2012 04:31:18 +0000 (-0700) Subject: Hide nuke_opt_values() if stoken support not built X-Git-Tag: v4.99~35 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9d0ad300576fc52ede8fcd74fbf1ee907539fbf9;p=users%2Fdwmw2%2Fopenconnect.git Hide nuke_opt_values() if stoken support not built auth.c:498:13: warning: 'nuke_opt_values' defined but not used [-Wunused-function] Signed-off-by: David Woodhouse --- diff --git a/auth.c b/auth.c index 85747449..4c9d623d 100644 --- a/auth.c +++ b/auth.c @@ -495,6 +495,7 @@ int parse_xml_response(struct openconnect_info *vpninfo, char *response, return ret; } +#ifdef LIBSTOKEN_HDR static void nuke_opt_values(struct oc_form_opt *opt) { for (; opt; opt = opt->next) { @@ -502,6 +503,7 @@ static void nuke_opt_values(struct oc_form_opt *opt) opt->value = NULL; } } +#endif /* * If the user clicks OK without entering any data, we will continue