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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sort/Makefile.com
          +++ new/usr/src/cmd/sort/Makefile.com
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
  23   23  # Copyright 2004 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  #
  28   29  # Debugging targets
  29   30  #   sort provides a number of debugging options to simplify failure analysis.
  30   31  #
  31   32  #   debug               provides symbol information and sets DEBUG; includes
  32   33  #                       convert, invoke
  33   34  #   stats               builds binaries with statistics reporting enabled
  34   35  #   convert             builds convert binaries (converts input to collation
  35   36  #                       vectors)
↓ open down ↓ 45 lines elided ↑ open up ↑
  81   82  
  82   83  CFLAGS +=       $(CCVERBOSE) $(SORT_DEBUG)
  83   84  CFLAGS64 +=     $(CCVERBOSE) $(SORT_DEBUG)
  84   85  CPPFLAGS +=     -D_FILE_OFFSET_BITS=64
  85   86  LINTFLAGS +=    -U_FILE_OFFSET_BITS
  86   87  
  87   88  CERRWARN +=     -_gcc=-Wno-parentheses
  88   89  CERRWARN +=     -_gcc=-Wno-uninitialized
  89   90  CERRWARN +=     -_gcc=-Wno-unused-function
  90   91  
       92 +# not linted
       93 +SMATCH=off
       94 +
  91   95  $(XPG4) :=      CFLAGS += -DXPG4
  92   96  
  93   97  debug :=        SORT_DEBUG = -g -DDEBUG $(ILDOFF)
  94   98  debug :=        COPTFLAG =
  95   99  debug :=        COPTFLAG64 =
  96  100  stats   :=      SORT_DEBUG = -g -DSTATS -DDEBUG $(ILDOFF)
  97  101  stats   :=      COPTFLAG =
  98  102  stats   :=      COPTFLAG64 =
  99  103  
 100  104  .KEEP_STATE :
↓ open down ↓ 48 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX