Print this page
10077 usr/src/uts/ Makefile changes for smatch
@@ -20,11 +20,13 @@
#
#
# 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 NS/SiS
# Fast Ethernet (SFE) driver module in intel systems
#
@@ -76,10 +78,13 @@
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
+# needs work
+SMOFF += all_func_returns
+
#
# Driver depends on MAC & IP
#
LDFLAGS += -dy -N misc/mac -N drv/ip