[PATCH setup 1/2] Fix -Werror=unused-const-variable error seen with gcc 6
Jon Turney
jon.turney@dronecode.org.uk
Thu Oct 19 12:21:00 GMT 2017
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
More information about the Cygwin-apps
mailing list