Print this page
10077 usr/src/uts/ Makefile changes for smatch
*** 21,30 ****
--- 21,32 ----
#
# 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 unix (and unix.o).
#
# i86xpv implementation architecture dependent
#
*** 146,155 ****
--- 148,160 ----
CERRWARN += -_gcc=-Wno-type-limits
CERRWARN += -_gcc=-Wno-clobbered
CERRWARN += -_gcc=-Wno-unused-value
CERRWARN += -_gcc=-Wno-empty-body
+ # needs work
+ SMATCH=off
+
# Ensure that lint sees 'struct cpu' containing a fully declared
# embedded 'struct machcpu'
#
LINTFLAGS += -D_MACHDEP -I../../i86pc