From fac5f4806410c2c5a23a2f5a8a65005898c80fb6 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 15 Nov 2016 14:03:11 +0900 Subject: [PATCH] build: don't use deprecation warning on ICC icc doesn't do the pragma warning push/pop thing to selectively disable the warning. Signed-off-by: David Lamparter --- lib/vty.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vty.h b/lib/vty.h index 3870e59b72..51d61b4a8c 100644 --- a/lib/vty.h +++ b/lib/vty.h @@ -30,7 +30,8 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #define VTY_MAXHIST 20 #if defined(VTY_DEPRECATE_INDEX) && defined(__GNUC__) && \ - (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) + (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && \ + !defined(__ICC) #define INDEX_WARNING __attribute__((deprecated)) #else #define INDEX_WARNING