From b555ed6cf06fbdabfe1f1ca4b5fc4776c471074e Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 30 Jun 2014 20:06:30 -0700 Subject: [PATCH] Tag a few unused parameters --- .../chacha20poly1305/sodium/aead_chacha20poly1305.c | 2 ++ src/libsodium/sodium/utils.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c b/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c index b5dbd71f..3439cb38 100644 --- a/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c +++ b/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c @@ -36,6 +36,7 @@ crypto_aead_chacha20poly1305_encrypt(unsigned char *c, unsigned char block0[64U]; unsigned char slen[8U]; + (void) nsec; #ifdef ULONG_LONG_MAX if (mlen > ULONG_LONG_MAX - crypto_aead_chacha20poly1305_ABYTES) { if (clen != NULL) { @@ -85,6 +86,7 @@ crypto_aead_chacha20poly1305_decrypt(unsigned char *m, unsigned char mac[crypto_aead_chacha20poly1305_ABYTES]; int ret; + (void) nsec; if (mlen != NULL) { *mlen = 0ULL; } diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index 2c574c49..eff9d0cd 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -21,7 +21,11 @@ #ifdef HAVE_WEAK_SYMBOLS __attribute__((weak)) void -__sodium_dummy_symbol_to_prevent_lto(void * const pnt, const size_t len) { } +__sodium_dummy_symbol_to_prevent_lto(void * const pnt, const size_t len) +{ + (void) pnt; + (void) len; +} #endif void