From 19b5a97c23d8055b21062759f1aac784a5039b3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Thu, 3 Jan 2019 16:57:02 +0100 Subject: [PATCH] Fix clang warning with older compiler versions Don't hardcode the clang version, apparently clang-3.8 did have the warning even though clang-3.4 did not... --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d354ee181..4e34992ae 100644 --- a/configure.ac +++ b/configure.ac @@ -236,7 +236,7 @@ cat <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 -- 2.47.2