Skip to contentSkip to conversation

clang compilation error ACL library

DISCUSSION Marc Sune 1 participant 1 message Oct 22, 2014

lore
Share & tools
lore

Marc Sune

author
#0 lore raw

Hi all,

The latest head produces this compilation error within librte_acl, with clang version 3.0-6.2:

CC acl_gen.o
/home/marc/dpdk/lib/librte_acl/acl_gen.c:249:11: error: array index of '-128' indexes before the beginning of the array [-Werror,-Warray-bounds]

                index = dfa[QRANGE_MIN];
                        ^   ~~~~~~~~~~
/home/marc/dpdk/lib/librte_acl/acl_gen.c:211:2: note: array 'dfa' declared here
        uint64_t *node_a, index, dfa[RTE_ACL_DFA_SIZE];
        ^

1 error generated.

Best regards
marc