Tag a few unused parameters
This commit is contained in:
parent
3d43dccf80
commit
b555ed6cf0
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user