From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 98A73138335 for ; Tue, 21 May 2019 14:12:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1D361E0874; Tue, 21 May 2019 14:12:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 03F9FE0874 for ; Tue, 21 May 2019 14:12:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBCAE344D2F for ; Tue, 21 May 2019 14:12:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3E3D35F9 for ; Tue, 21 May 2019 14:12:00 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1558447595.2c10662ac7ec65cbeb2cec25ab492604202ea6b8.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/hash.c X-VCS-Directories: libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 2c10662ac7ec65cbeb2cec25ab492604202ea6b8 X-VCS-Branch: master Date: Tue, 21 May 2019 14:12:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1b214bcb-05a2-49de-92d9-39beeb66e765 X-Archives-Hash: a253583026ad2b0930e142905d354ea3 commit: 2c10662ac7ec65cbeb2cec25ab492604202ea6b8 Author: Fabian Groffen gentoo org> AuthorDate: Tue May 21 14:06:35 2019 +0000 Commit: Fabian Groffen gentoo 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 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)