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

@@ -8,11 +8,11 @@
 # source.  A copy of the CDDL is also available via the Internet at
 # http://www.illumos.org/license/CDDL.
 #
 
 #
-# Copyright 2017 Joyent, Inc.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 UTSBASE = ../..
 
 MODULE          = i40e

@@ -41,10 +41,13 @@
 # The Intel common code defines some enums which are valid unsigned ints that
 # GCC is fine with, but not Studio.
 #
 CERRWARN   += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
 
+# 3rd party code
+SMOFF += all_func_returns
+
 LDFLAGS         += -dy -N misc/mac
 
 .KEEP_STATE:
 
 def:            $(DEF_DEPS)