Print this page
10079 smatch Makefile changes for usr/src/lib
*** 20,30 ****
#
#
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! #
LIBRARY= fp.a
VERS= .1
OBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o
--- 20,30 ----
#
#
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
! # Copyright (c) 2018, Joyent, Inc.
LIBRARY= fp.a
VERS= .1
OBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o
*** 49,58 ****
--- 49,61 ----
CERRWARN += -_gcc=-Wno-char-subscripts
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-address
+ # not linted
+ SMATCH=off
+
CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2