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/e1000/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/intel/e1000/meson.build b/drivers/net/intel/e1000/meson.build index 6f1e300718..4c35db5067 100644 --- a/drivers/net/intel/e1000/meson.build +++ b/drivers/net/intel/e1000/meson.build @@ -22,6 +22,9 @@ base_sources = files( 'base/e1000_vf.c', ) +# base code has unreachable code +base_cflags += no_unreachable_cflag + sources += files( 'e1000_logs.c', 'e1000_osdep.c', -- 2.53.0

