aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_hmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_hmac.c')
-rw-r--r--libarchive/archive_hmac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libarchive/archive_hmac.c b/libarchive/archive_hmac.c
index 392916de5b7b..7c626df6e1f1 100644
--- a/libarchive/archive_hmac.c
+++ b/libarchive/archive_hmac.c
@@ -83,7 +83,9 @@ __hmac_sha1_cleanup(archive_hmac_sha1_ctx *ctx)
static int
__hmac_sha1_init(archive_hmac_sha1_ctx *ctx, const uint8_t *key, size_t key_len)
{
+#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wcast-qual"
+#endif
BCRYPT_ALG_HANDLE hAlg;
BCRYPT_HASH_HANDLE hHash;
DWORD hash_len;