From a76c8239928818c40e96b5eb33c5e3cf752991e0 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Wed, 10 Apr 2019 10:38:43 +0200 Subject: [PATCH] fix unused-function `_sha256()` in xsalsa20_test.c --- src/stream/salsa20/xsalsa20_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream/salsa20/xsalsa20_test.c b/src/stream/salsa20/xsalsa20_test.c index 99616f39..8b9b93f7 100644 --- a/src/stream/salsa20/xsalsa20_test.c +++ b/src/stream/salsa20/xsalsa20_test.c @@ -18,7 +18,7 @@ #ifdef LTC_XSALSA20 -#ifdef LTC_SHA256 +#if defined(LTC_SHA256) && defined(LTC_TEST) static int _sha256(unsigned char *hash, const unsigned char *data, const int datalen) { hash_state md; sha256_init(&md);