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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ptools/Makefile.bld
          +++ new/usr/src/cmd/ptools/Makefile.bld
↓ 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 2009 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  PROG:sh = basename `cd ..; pwd`
  28   29  
  29   30  OBJS = $(PROG).o
  30   31  
  31   32  SRCS = ../$(PROG).c
  32   33  
  33   34  FILEMODE = 0555
  34   35  
  35   36  # libproc is added individually as pwait doesn't need it.
↓ open down ↓ 13 lines elided ↑ open up ↑
  49   50  LDLIBS_psig             = -lproc
  50   51  LDLIBS_pstack           = -lproc -lc_db
  51   52  LDLIBS_pstop            = -lproc
  52   53  LDLIBS_ptime            = -lproc
  53   54  LDLIBS_ptree            = -lproc -lcontract
  54   55  LDLIBS_pwdx             = -lproc
  55   56  
  56   57  LDLIBS += $(LDLIBS_$(PROG))
  57   58  
  58   59  CERRWARN_plgrp  += -_gcc=-Wno-parentheses
       60 +CERRWARN_plgrp  += -_smatch=off
  59   61  
       62 +CERRWARN_pmadvise += -_smatch=off
       63 +
  60   64  CERRWARN_ppriv  += -_gcc=-Wno-parentheses
  61   65  CERRWARN_ppriv  += -_gcc=-Wno-uninitialized
  62   66  
  63   67  CERRWARN_ptree  += -_gcc=-Wno-parentheses
       68 +CERRWARN_ptree  += -_smatch=off
  64   69  
  65   70  CERRWARN_pstack += -_gcc=-Wno-uninitialized
  66   71  CERRWARN_pstack += -_gcc=-Wno-clobbered
  67   72  
  68   73  CERRWARN_pargs  += -_gcc=-Wno-clobbered
  69   74  CERRWARN_pargs  += -_gcc=-Wno-type-limits
  70   75  
       76 +CERRWARN_pwait  += -_smatch=off
       77 +
  71   78  CERRWARN += $(CERRWARN_$(PROG))
  72   79  
  73   80  # pargs depends on ../../common/elfcap components
  74   81  # pmadvise depends on pmap components
  75   82  
  76   83  ELFCAP =        $(SRC)/common/elfcap
  77   84  PMAP =          $(SRC)/cmd/ptools/pmap
  78   85  
  79   86  CPPFLAGS_pargs =        -I$(ELFCAP)
  80   87  OBJS_pargs =            elfcap.o
↓ open down ↓ 52 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX