From: Joerg Sonnenberger Date: Thu, 3 Oct 2019 17:32:44 +0000 (+0200) Subject: Limit #pragma GCC to GCC-compatible cmopilers X-Git-Tag: v3.4.1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebef6c495e8d843523503a42c406fc5ff3ef8914;p=thirdparty%2Flibarchive.git Limit #pragma GCC to GCC-compatible cmopilers --- diff --git a/libarchive/archive_hmac.c b/libarchive/archive_hmac.c index 392916de5..7c626df6e 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;