From 96565816bd38632e47bc70b76548b0f3c99c3b27 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 4 Nov 2016 17:11:06 -0700 Subject: restricted deprecation warning to fairly recent gcc versions (>=6.0) --- lib/lz4frame.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lz4frame.h b/lib/lz4frame.h index 08d1895..63d61ad 100644 --- a/lib/lz4frame.h +++ b/lib/lz4frame.h @@ -67,7 +67,7 @@ extern "C" { #if defined(_MSC_VER) # define LZ4F_DEPRECATE(x) __declspec(deprecated) x -#elif defined(__GNUC__) +#elif defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 6)) # define LZ4F_DEPRECATE(x) x __attribute__((deprecated)) #else # define LZ4F_DEPRECATE(x) x /* no deprecation warning for this compiler */ -- cgit v0.12