commit: 2c10662ac7ec65cbeb2cec25ab492604202ea6b8
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue May 21 14:06:35 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue May 21 14:06:35 2019 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=2c10662a
libq/hash: fix some warnings when libb2 or openssl isn't found
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
libq/hash.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libq/hash.c b/libq/hash.c
index 5b13d49..8ce29d7 100644
--- a/libq/hash.c
+++ b/libq/hash.c
@@ -106,9 +106,15 @@ hash_compute_file(
SHA256_CTX s256;
SHA512_CTX s512;
WHIRLPOOL_CTX whrl;
+#else
+ (void)sha256;
+ (void)sha512;
+ (void)whrlpl;
#endif
#ifdef HAVE_BLAKE2B
blake2b_state bl2b;
+#else
+ (void)blak2b;
#endif
if ((f = fopen(fname, "r")) == NULL)