From cff3d7f6c7ebe78204bfb145f1d42e58e9fb9f2b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 29 Dec 2018 16:42:09 +0100 Subject: [PATCH] Remove unused variables --- src/libsodium/sodium/core.c | 2 -- test/default/aead_aes256gcm2.c | 2 -- test/default/aead_chacha20poly13052.c | 2 -- test/default/codecs.c | 3 +-- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/libsodium/sodium/core.c b/src/libsodium/sodium/core.c index 2241a2ea..f2456fe1 100644 --- a/src/libsodium/sodium/core.c +++ b/src/libsodium/sodium/core.c @@ -125,8 +125,6 @@ sodium_crit_enter(void) int sodium_crit_leave(void) { - int ret; - if (locked == 0) { # ifdef EPERM errno = EPERM; diff --git a/test/default/aead_aes256gcm2.c b/test/default/aead_aes256gcm2.c index 5f293320..43170b5d 100644 --- a/test/default/aead_aes256gcm2.c +++ b/test/default/aead_aes256gcm2.c @@ -189,9 +189,7 @@ tv(void) unsigned char *message; unsigned char *mac; unsigned char *nonce; - char * hex; size_t ad_len; - size_t ciphertext_len; size_t detached_ciphertext_len; size_t message_len; unsigned int i; diff --git a/test/default/aead_chacha20poly13052.c b/test/default/aead_chacha20poly13052.c index 8fdabe2e..8c59ecaf 100644 --- a/test/default/aead_chacha20poly13052.c +++ b/test/default/aead_chacha20poly13052.c @@ -954,9 +954,7 @@ tv(void) unsigned char *message; unsigned char *mac; unsigned char *nonce; - char * hex; size_t ad_len; - size_t ciphertext_len; size_t detached_ciphertext_len; size_t message_len; unsigned int i; diff --git a/test/default/codecs.c b/test/default/codecs.c index 9d6bc837..711b4217 100644 --- a/test/default/codecs.c +++ b/test/default/codecs.c @@ -11,11 +11,10 @@ main(void) char *b64_; const char *b64_end; unsigned char *bin; - unsigned char *bin_padded; const char *hex; const char *hex_end; size_t b64_len; - size_t bin_len, bin_len2; + size_t bin_len; unsigned int i; printf("%s\n",