]> git.proxmox.com Git - mirror_frr.git/commitdiff
build: don't use deprecation warning on ICC
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 15 Nov 2016 05:03:11 +0000 (14:03 +0900)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 15 Nov 2016 05:06:59 +0000 (14:06 +0900)
icc doesn't do the pragma warning push/pop thing to selectively disable
the warning.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/vty.h

index 3870e59b72f6825c787b69cb781e4b1c460a9558..51d61b4a8cae944e91ed8e32d6f812159c797e82 100644 (file)
--- 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