Hide nuke_opt_values() if stoken support not built
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 15 Oct 2012 04:31:18 +0000 (21:31 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 15 Oct 2012 04:31:41 +0000 (21:31 -0700)
auth.c:498:13: warning: 'nuke_opt_values' defined but not used [-Wunused-function]

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
auth.c

diff --git a/auth.c b/auth.c
index 8574744..4c9d623 100644 (file)
--- 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