Print this page
10077 usr/src/uts/ Makefile changes for smatch
*** 8,18 ****
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
! # Copyright (c) 2014 Joyent, Inc. All rights reserved.
#
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
--- 8,18 ----
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
! # Copyright (c) 2018, Joyent, Inc.
#
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
*** 47,56 ****
--- 47,59 ----
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-unused-function
+ # needs work
+ SMOFF += all_func_returns
+
LINTTAGS += -erroff=E_FUNC_VAR_UNUSED
LINTTAGS += -erroff=E_FUNC_ARG_UNUSED
LINTTAGS += -erroff=E_STATIC_UNUSED
LINTTAGS += -erroff=E_FUNC_SET_NOT_USED
LINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2