summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-05 00:11:06 (GMT)
committerYann Collet <cyan@fb.com>2016-11-05 00:11:06 (GMT)
commit96565816bd38632e47bc70b76548b0f3c99c3b27 (patch)
tree5c54e332fa02457bfe06d59ada6d917f73f51de9 /lib/lz4frame.h
parenteaad740ac7267428b03ae19c7051e615ec507bda (diff)
downloadlz4-96565816bd38632e47bc70b76548b0f3c99c3b27.zip
lz4-96565816bd38632e47bc70b76548b0f3c99c3b27.tar.gz
lz4-96565816bd38632e47bc70b76548b0f3c99c3b27.tar.bz2
restricted deprecation warning to fairly recent gcc versions (>=6.0)
Diffstat (limited to 'lib/lz4frame.h')
-rw-r--r--lib/lz4frame.h2
1 files changed, 1 insertions, 1 deletions
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 */