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/ngbe/base/meson.build | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/ngbe/base/meson.build 
b/drivers/net/ngbe/base/meson.build
index 6932f648af..83844049b8 100644
--- a/drivers/net/ngbe/base/meson.build
+++ b/drivers/net/ngbe/base/meson.build
@@ -14,3 +14,6 @@ base_sources = files(
 )
 
 cflags += no_wvla_cflag
+
+# base code has unreachable code
+base_cflags += no_unreachable_cflag
-- 
2.53.0

Reply via email to