]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Make configure work with older clang versions 315/head
authorAnders F Björklund <anders.f.bjorklund@gmail.com>
Sun, 16 Sep 2018 20:19:09 +0000 (22:19 +0200)
committerAnders F Björklund <anders.f.bjorklund@gmail.com>
Sun, 16 Sep 2018 20:19:09 +0000 (22:19 +0200)
Apparently clang-3.4 did not have -Wreserved-id-macro

configure.ac

index 89a914983e7e16869af42a5ddcb8ed1b9d6f48aa..08c6963b825004ebc93dd3cff2dd4d42d5452598 100644 (file)
@@ -213,8 +213,10 @@ cat <<EOF >config.h.tmp
 #define CCACHE_CONFIG_H
 #ifdef __clang__
 #pragma clang diagnostic push
+#if __clang_major__ >= 4
 #pragma clang diagnostic ignored "-Wreserved-id-macro"
 #endif
+#endif
 
 EOF
 cat config.h >>config.h.tmp