There is unreachable code in the base/ files imported from the
vendor. Disable the check for the base code only, using
base_cflags, so the driver's own sources are still checked.

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

diff --git a/drivers/net/intel/ixgbe/meson.build 
b/drivers/net/intel/ixgbe/meson.build
index 7e26700835..a3d6979b2b 100644
--- a/drivers/net/intel/ixgbe/meson.build
+++ b/drivers/net/intel/ixgbe/meson.build
@@ -20,6 +20,9 @@ base_sources = files(
         'base/ixgbe_x550.c',
 )
 
+# base code has unreachable code
+base_cflags += no_unreachable_cflag
+
 sources += files(
         'ixgbe_82599_bypass.c',
         'ixgbe_bypass.c',
-- 
2.53.0

Reply via email to