summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-11-15 14:03:11 +0900
committerDavid Lamparter <equinox@opensourcerouting.org>2016-11-15 14:06:59 +0900
commitfac5f4806410c2c5a23a2f5a8a65005898c80fb6 (patch)
treeb468fd47fcef037376531cbc65938de7f5ba3be8
parent7961551a1cdcfb147e06e6590da71d852715988a (diff)
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 <equinox@opensourcerouting.org>
-rw-r--r--lib/vty.h3
1 files changed, 2 insertions, 1 deletions
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