Print this page
10077 usr/src/uts/ Makefile changes for smatch

@@ -20,10 +20,11 @@
 #
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 # Copyright 2016 OmniTI Computer Consulting, Inc.  All rights reserved.
+# Copyright (c) 2018, Joyent, Inc.
 #
 # uts/intel/ixgbe/Makefile
 #
 #       This makefile drives the production of the ixgbe
 #       network driver kernel module.

@@ -58,10 +59,13 @@
 CERRWARN        += -_gcc=-Wno-switch
 CERRWARN        += -_gcc=-Wno-uninitialized
 CERRWARN        += -_gcc=-Wno-unused-value
 CERRWARN        += -_cc=-erroff=E_STATEMENT_NOT_REACHED
 
+# 3rd party code
+SMOFF += all_func_returns
+
 #
 #       Define targets
 #
 ALL_TARGET      = $(BINARY) $(CONFMOD)
 LINT_TARGET     = $(MODULE).lint