Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions

@@ -26,10 +26,11 @@
 # Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
 # Copyright 2015 Gary Mills
 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
 # Copyright 2016 Toomas Soome <tsoome@me.com>
 # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 #
 # Makefile.master, global definitions for system source
 #

@@ -433,10 +434,13 @@
 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
 # -nd builds
 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
 
+CERRWARN += -_smatch=-p=illumos_user
+include $(SRC)/Makefile.smatch
+
 #
 # turn warnings into errors (C++)
 CCERRWARN=              -xwe
 
 # C standard.  Keep Studio flags until we get rid of lint.