This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH setup 1/2] Fix -Werror=unused-const-variable error seen with gcc 6
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon Turney <jon dot turney at dronecode dot org dot uk>
- Date: Thu, 19 Oct 2017 13:20:44 +0100
- Subject: [PATCH setup 1/2] Fix -Werror=unused-const-variable error seen with gcc 6
- Authentication-results: sourceware.org; auth=none
- References: <20171019122045.81736-1-jon.turney@dronecode.org.uk>
sha2.c:199:24: error: 'sha224_initial_hash_value' defined but not used [-Werror=unused-const-variable=]
---
sha2.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sha2.c b/sha2.c
index 4842e42..67251bc 100644
--- a/sha2.c
+++ b/sha2.c
@@ -195,6 +195,7 @@ static const u_int32_t K256[64] = {
0x90befffaUL, 0xa4506cebUL, 0xbef9a3f7UL, 0xc67178f2UL
};
+#if !defined(SHA2_SMALL)
/* Initial hash value H for SHA-224: */
static const u_int32_t sha224_initial_hash_value[8] = {
0xc1059ed8UL,
@@ -206,6 +207,7 @@ static const u_int32_t sha224_initial_hash_value[8] = {
0x64f98fa7UL,
0xbefa4fa4UL
};
+#endif
/* Initial hash value H for SHA-256: */
static const u_int32_t sha256_initial_hash_value[8] = {
--
2.14.2