From 2146e945d2d90112054bcb7f557e875594f167ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Jan 2021 19:24:50 +0100 Subject: Only use modern deprecated attributes on clang 7 and newer --- include/serd/serd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/serd/serd.h b/include/serd/serd.h index 6274957f..32488e18 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -62,7 +62,7 @@ SERD_CONST_FUNC #ifndef SERD_DISABLE_DEPRECATED -# if defined(__clang__) +# if defined(__clang__) && __clang_major__ >= 7 # define SERD_DEPRECATED_BY(rep) __attribute__((deprecated("", rep))) # elif defined(__GNUC__) && __GNUC__ > 4 # define SERD_DEPRECATED_BY(rep) __attribute__((deprecated("Use " rep))) -- cgit v1.2.1