]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Silence unused variable warnings in find_cipher_by_id
authorteor <teor2345@gmail.com>
Tue, 2 Jun 2015 17:43:46 +0000 (03:43 +1000)
committerteor <teor2345@gmail.com>
Tue, 2 Jun 2015 18:19:05 +0000 (04:19 +1000)
Unused variable warnings were still generated under some versions of OpenSSL.
Instead, make sure all variables are used under all versions.

Fix on 496df21c89d1, not in any released version of tor.

changes/bug16115-unused-find-cipher [new file with mode: 0644]
src/common/tortls.c

diff --git a/changes/bug16115-unused-find-cipher b/changes/bug16115-unused-find-cipher
new file mode 100644 (file)
index 0000000..0f04d67
--- /dev/null
@@ -0,0 +1,7 @@
+  o Minor fixes (threads, comments):
+    - Silence unused variable warnings in find_cipher_by_id
+      Unused variable warnings were still generated under some versions
+      of OpenSSL. Instead, make sure all variables are used under all
+      versions of OpenSSL.
+      Patch by "teor".
+      Fix on 496df21c89d1, not in any released version of tor.
index a4b6c487fe289ae6e204e486aff84287ea56cdd6..70b9f0b2404f63ce062fba7f48e9291b8866f0a2 100644 (file)
@@ -1483,6 +1483,8 @@ find_cipher_by_id(const SSL *ssl, const SSL_METHOD *m, uint16_t cipher)
   }
 #endif
   (void) ssl;
+  (void) m;
+  (void) cipher;
   return 1; /* No way to search */
 }