]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix clang warning with older compiler versions 343/head
authorAnders F Björklund <anders.f.bjorklund@gmail.com>
Thu, 3 Jan 2019 15:57:02 +0000 (16:57 +0100)
committerAnders F Björklund <anders.f.bjorklund@gmail.com>
Thu, 3 Jan 2019 18:54:58 +0000 (19:54 +0100)
Don't hardcode the clang version, apparently clang-3.8
did have the warning even though clang-3.4 did not...

configure.ac

index d354ee18196691aa3f58b38eef42f7763d8cf757..4e34992aef8333425eacbc920d8f453df95c4ea5 100644 (file)
@@ -236,7 +236,7 @@ cat <<EOF >config.h.tmp
 #define CCACHE_CONFIG_H
 #ifdef __clang__
 #pragma clang diagnostic push
-#if __clang_major__ >= 4
+#if __has_warning("-Wreserved-id-macro")
 #pragma clang diagnostic ignored "-Wreserved-id-macro"
 #endif
 #endif