Print this page
10080 smatch Makefile changes for usr/src/cmd

@@ -4,12 +4,13 @@
 #         All Rights Reserved
 #
 # Copyright (c) 1980 Regents of the University of California.
 # All rights reserved.  The Berkeley Software License Agreement
 # specifies the terms and conditions for redistribution.
-
 #
+# Copyright (c) 2018, Joyent, Inc.
+#
 # C Shell with process control; VM/UNIX VAX Makefile
 # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
 #
 
 CSH_PROG =      csh

@@ -32,10 +33,13 @@
 CERRWARN += -_gcc=-Wno-unused-variable
 CERRWARN += -_gcc=-Wno-clobbered
 CERRWARN += -_gcc=-Wno-unused-label
 CERRWARN += -_gcc=-Wno-extra
 
+# "missing type for func"
+SMATCH=off
+
 MAPFILES =      ../mapfile-intf $(MAPFILE.NGB)
 LDFLAGS +=      $(MAPFILES:%=-M%)
 
 HDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \
         sh.func.o sh.glob.o sh.hist.o sh.init.o sh.lex.o sh.misc.o \