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

@@ -8,11 +8,11 @@
 # 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.
+# Copyright (c) 2018, Joyent, Inc.
 #
 
 #
 # uts/intel/bnxe/Makefile
 #

@@ -83,11 +83,10 @@
                    -I$(SRCDIR)/577xx/hsi/hw/include \
                    -I$(SRCDIR)/577xx/hsi/mcp \
                    -I$(SRCDIR)
 
 LDFLAGS         += -dy -r -Ndrv/ip -Nmisc/mac
-#CERRWARN       += -_gcc=-Wno-old-style-declaration
 CERRWARN        += -_gcc=-Wno-switch
 CERRWARN        += -_gcc=-Wno-uninitialized
 CERRWARN        += -_gcc=-Wno-parentheses
 CERRWARN        += -_gcc=-Wno-unused-function
 CERRWARN        += -_gcc=-Wno-unused-value

@@ -97,10 +96,13 @@
 CERRWARN        += -_cc=-erroff=E_ARGUEMENT_MISMATCH
 CERRWARN        += -_cc=-erroff=E_INTEGER_OVERFLOW_DETECTED
 CERRWARN        += -_cc=-erroff=E_CONST_PROMOTED_UNSIGNED_LL
 CERRWARN        += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
 
+# a whole mess
+SMATCH=off
+
 LINTTAGS        += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
 LINTTAGS        += -erroff=E_FUNC_RET_MAYBE_IGNORED2
 LINTTAGS        += -erroff=E_STATIC_UNUSED
 LINTTAGS        += -erroff=E_FUNC_SET_NOT_USED
 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN