Print this page
10077 usr/src/uts/ Makefile changes for smatch
*** 20,36 ****
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! # uts/intel/e1000g/Makefile
! #
! # This makefile drives the production of the iprb
! # network driver kernel module.
! #
! # intel architecture dependent
! #
#
# Paths to the base of the uts directory trees
#
UTSBASE = ../..
--- 20,30 ----
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! # Copyright (c) 2018, Joyent, Inc.
#
# Paths to the base of the uts directory trees
#
UTSBASE = ../..
*** 69,78 ****
--- 63,74 ----
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED
+ SMOFF += all_func_returns,indenting,shift_to_zero
+
LINTTAGS += -erroff=E_CONSTANT_CONDITION
#
# Define targets
#