numam-dpdk/lib/librte_hash
Ferruh Yigit d2e0260445 hash: fix icc build
build error with icc version 17.0.4 (gcc version 7.0.0 compatibility):

In file included from .../dpdk/lib/librte_hash/rte_fbk_hash.h(59),
                 from .../dpdk/lib/librte_hash/rte_fbk_hash.c(54):
.../dpdk/x86_64-native-linuxapp-icc/include/rte_hash_crc.h(480):
 error #1292: unknown attribute "fallthrough"
                __attribute__ ((fallthrough));
                                ^

In file included from .../dpdk/lib/librte_hash/rte_fbk_hash.h(59),
                 from .../dpdk/lib/librte_hash/rte_fbk_hash.c(54):
.../dpdk/x86_64-native-linuxapp-icc/include/rte_hash_crc.h(486):
 error #1292: unknown attribute "fallthrough"
                __attribute__ ((fallthrough));
                                ^
This code patch hit when gcc > 7 installed and ICC doesn't recognize
fallthrough attribute.

Fixed by disabling code when compiled with ICC.

Fixes: 3dfb9facb0 ("lib: add switch fall-through comments")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
2017-06-14 22:54:54 +02:00
..
Makefile mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
rte_cmp_arm64.h hash: replace libc memcmp with optimized functions for arm64 2015-11-25 22:11:37 +01:00
rte_cmp_x86.h remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
rte_crc_arm64.h hash: add switch fall-through comments for arm64 2017-05-10 16:29:26 +02:00
rte_cuckoo_hash_x86.h hash: fix bucket size usage 2016-10-12 18:40:52 +02:00
rte_cuckoo_hash.c ring: return remaining entry count when dequeuing 2017-03-29 22:32:20 +02:00
rte_cuckoo_hash.h hash: fix unlimited cuckoo path 2016-10-12 18:40:51 +02:00
rte_fbk_hash.c hash: fix allocation of an existing object 2016-04-06 17:30:48 +02:00
rte_fbk_hash.h lib: use C99 syntax for zero-size arrays 2016-09-13 15:35:28 +02:00
rte_hash_crc.h hash: fix icc build 2017-06-14 22:54:54 +02:00
rte_hash_version.map hash: retrieve a key given its position 2016-07-10 14:56:45 +02:00
rte_hash.h hash: retrieve a key given its position 2016-07-10 14:56:45 +02:00
rte_jhash.h hash: fix header for C++ 2016-02-21 11:47:57 +01:00
rte_thash.h lib: work around unnamed structs/unions 2016-09-13 15:35:28 +02:00