Tag a few unused parameters

This commit is contained in:
Frank Denis 2014-06-30 20:06:30 -07:00
parent 3d43dccf80
commit b555ed6cf0
2 changed files with 7 additions and 1 deletions

View File

@ -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;
}

View File

@ -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