diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-15 14:03:11 +0900 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-11-15 14:06:59 +0900 |
| commit | fac5f4806410c2c5a23a2f5a8a65005898c80fb6 (patch) | |
| tree | b468fd47fcef037376531cbc65938de7f5ba3be8 | |
| parent | 7961551a1cdcfb147e06e6590da71d852715988a (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
