]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Limit #pragma GCC to GCC-compatible cmopilers
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 3 Oct 2019 17:32:44 +0000 (19:32 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Thu, 3 Oct 2019 17:32:44 +0000 (19:32 +0200)
libarchive/archive_hmac.c

index 392916de5b7b127c3555a514207dde07d21dcb61..7c626df6e1f1629304276689b7e282ab81bd78a8 100644 (file)
@@ -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;