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

@@ -20,10 +20,11 @@
 #
 #
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #       This makefile drives the production of the Broadcom BCM57xx
 #       Gigabit Ethernet (BGE) driver module in intel systems
 #

@@ -68,10 +69,13 @@
 CERRWARN        += -_gcc=-Wno-switch
 CERRWARN        += -_gcc=-Wno-parentheses
 CERRWARN       += -_gcc=-Wno-unused-variable
 CERRWARN       += -_gcc=-Wno-unused-function
 
+# 3rd party source
+SMOFF += all_func_returns
+
 #
 # Driver depends on MAC
 #
 LDFLAGS         += -dy -N misc/mac