There is unreachable code in the hcapi/ and tf_core/ files
imported from the vendor. Those are listed in sources rather than
base_sources, so they are not built separately and the exemption
has to apply to the whole driver.

Signed-off-by: Stephen Hemminger <[email protected]>
---
 drivers/net/bnxt/meson.build | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/bnxt/meson.build b/drivers/net/bnxt/meson.build
index 67bfd3f79b..f183237899 100644
--- a/drivers/net/bnxt/meson.build
+++ b/drivers/net/bnxt/meson.build
@@ -66,3 +66,6 @@ elif arch_subdir == 'arm' and dpdk_conf.get('RTE_ARCH_64')
 endif
 
 annotate_locks = false
+
+# hcapi/ and tf_core/ code has unreachable code
+cflags += no_unreachable_cflag
-- 
2.53.0

Reply via email to