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]>
Acked-by: Bruce Richardson <[email protected]>
---
 drivers/net/intel/ice/meson.build | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/intel/ice/meson.build 
b/drivers/net/intel/ice/meson.build
index 00077be30a..f8eb1e0015 100644
--- a/drivers/net/intel/ice/meson.build
+++ b/drivers/net/intel/ice/meson.build
@@ -76,6 +76,9 @@ base_sources = files(
         'base/ice_vf_mbx.c',
 )
 
+# base code has unreachable code
+base_cflags += no_unreachable_cflag
+
 if is_ms_compiler
     base_error_cflags = [
             '/wd4101', # unreferenced local variable
-- 
2.53.0

Reply via email to