Print this page
10077 usr/src/uts/ Makefile changes for smatch

@@ -19,11 +19,11 @@
 # CDDL HEADER END
 #
 #
 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
 #
-#
+# Copyright (c) 2018, Joyent, Inc.
 
 #
 #       Path to the base of the uts directory tree (usually /usr/src/uts).
 #
 UTSBASE = ../..

@@ -62,10 +62,13 @@
 
 CERRWARN        += -_gcc=-Wno-type-limits
 CERRWARN        += -_gcc=-Wno-switch
 CERRWARN        += -_gcc=-Wno-unused-label
 
+# really broken
+SMOFF += logical_instead_of_bitwise,or_vs_and
+
 #
 #       Default build targets.
 #
 .KEEP_STATE: