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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dtrace/test/tst/Makefile.com
          +++ new/usr/src/cmd/dtrace/test/tst/Makefile.com
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  
  22   22  #
  23   23  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
       26 +# Copyright (c) 2018, Joyent, Inc.
  26   27  
  27   28  include $(SRC)/cmd/Makefile.cmd
  28   29  
  29   30  .KEEP_STATE:
  30   31  
  31   32  ROOTOPTPKG = $(ROOT)/opt/SUNWdtrt
  32   33  ROOTTST = $(ROOTOPTPKG)/tst
  33   34  SUBDIR :sh= basename `pwd`
  34   35  TSTDIR = $(ROOTTST)/$(SUBDIR)
  35   36  DSTYLE = $(ROOTOPTPKG)/bin/dstyle
↓ open down ↓ 23 lines elided ↑ open up ↑
  59   60  # utterly subvert.  We force the compiler to not optimize rather than engage
  60   61  # in an arms race with increasingly belligerent optimizers.
  61   62  COPTFLAG=       -xO0
  62   63  
  63   64  CERRWARN +=     -_gcc=-Wno-switch
  64   65  CERRWARN +=     -_gcc=-Wno-unused-variable
  65   66  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  66   67  CERRWARN +=     -_gcc=-Wno-unused-function
  67   68  CERRWARN +=     -_gcc=-Wno-unused-variable
  68   69  
       70 +# not linted
       71 +SMATCH=off
       72 +
  69   73  all: $(EXES)
  70   74  
  71   75  clean lint:
  72   76  
  73   77  clobber: FRC
  74   78          -$(RM) $(CSRCS:%.c=%.exe) $(CSRCS:%.c=%.o)
  75   79          -$(RM) $(SSRCS:%.s=%.exe) $(SSRCS:%.s=%.o)
  76   80          -$(RM) $(DSRCS:%.d=%.o)
  77   81          -$(RM) $(CLOBBERFILES)
  78   82  
↓ open down ↓ 36 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX