Skip to contentSkip to conversation

build failures with clang 15

Bug 1114 [email protected] 1 participant 1 message Oct 26, 2022

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 1114
Summary: build failures with clang 15
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: other
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---

DPDK build fails with clang 15 in Fedora Rawhide due to unused variables:

lib/eal/common/rte_service.c:110:6: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable] lib/vhost/virtio_net.c:1880:11: error: variable 'remained' set but not used [-Werror,-Wunused-but-set-variable] drivers/bus/dpaa/base/qbman/bman.h:522:6: error: variable 'aq_count' set but not used [-Werror,-Wunused-but-set-variable]
(And in many other places).

Probably caused by this change:
https://releases.llvm.org/15.0.0/tools/clang/docs/ReleaseNotes.html

Quoted 2 lines

-Wunused-but-set-variable now also warns if the variable is only used by unary operators.

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