]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
remove some 'unused variable' warnings
authorGert Doering <gert@greenie.muc.de>
Fri, 10 Jan 2014 16:25:41 +0000 (17:25 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 11 Jan 2014 11:36:50 +0000 (12:36 +0100)
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1389371142-26705-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8197

src/openvpn/comp-lz4.c
src/openvpn/options.c
src/openvpn/ssl.c

index afa43b19fa6f1a0c5d646581c49e3c6880706022..4651148579b9b3ecde952669c970c5e3cd18f8b8 100644 (file)
@@ -64,7 +64,6 @@ lz4_compress (struct buffer *buf, struct buffer work,
               struct compress_context *compctx,
               const struct frame* frame)
 {
-  int result;
   bool compressed = false;
 
   if (buf->len <= 0)
index 0803da713d1d28d7c60ae707a91e2948e372b7e2..9e21d5aca8fbc6e705ceedd8194870a333553c9e 100644 (file)
@@ -2425,7 +2425,9 @@ options_postprocess_mutate_ce (struct options *o, struct connection_entry *ce)
 static void
 options_postprocess_mutate_invariant (struct options *options)
 {
+#ifdef WIN32
   const int dev = dev_type_enum (options->dev, options->dev_type);
+#endif
 
   /*
    * In forking TCP server mode, you don't need to ifconfig
index 15518cab746edd4d22b42e26781c3d00f78b3773..c61701a7564f0a81e1dc4fe83666acae529ca87e 100644 (file)
@@ -1331,7 +1331,7 @@ tls1_P_hash(const md_kt_t *md_kt,
            int olen)
 {
   struct gc_arena gc = gc_new ();
-  int chunk,n;
+  int chunk;
   hmac_ctx_t ctx;
   hmac_ctx_t ctx_tmp;
   uint8_t A1[MAX_HMAC_KEY_LENGTH];
@@ -1357,7 +1357,6 @@ tls1_P_hash(const md_kt_t *md_kt,
   hmac_ctx_update(&ctx,seed,seed_len);
   hmac_ctx_final(&ctx, A1);
 
-  n=0;
   for (;;)
     {
       hmac_ctx_reset(&ctx);