Skip to contentSkip to conversation

net/bnxt build failure with clang 3.4.2

dpdk-dev [email protected] 1 participant 1 message Oct 3, 2021

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=821

Bug ID: 821
Summary: net/bnxt build failure with clang 3.4.2
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: ethdev
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---

"""

$ export CC=clang
$ meson --werror --buildtype=debugoptimized build && ninja-build -C build
[..]
../../root/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c:140:18: error:
comparison of constant 2147483648 with expression of type 'const enum
rte_flow_item_type' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
                if (item->type >= (uint32_t)
                    ~~~~~~~~~~ ^  ~~~~~~~~~~
../../root/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c:142:19: error:
comparison of constant 2147483650 with expression of type 'const enum
rte_flow_item_type' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
                        if (item->type >=
                            ~~~~~~~~~~ ^
../../root/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c:188:25: error:
comparison of constant 2147483648 with expression of type 'const enum
rte_flow_action_type' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
                if (action_item->type >=
                    ~~~~~~~~~~~~~~~~~ ^
../../root/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c:190:26: error:
comparison of constant 2147483650 with expression of type 'const enum
rte_flow_action_type' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
                        if (action_item->type >=
                            ~~~~~~~~~~~~~~~~~ ^
4 errors generated.
"""

Reproduces on main (086d426406).

OS: CentOS Linux 7
GCC: 4.8.5 20150623 (Red Hat 4.8.5-44)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.