Print this page
10079 smatch Makefile changes for usr/src/lib

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libcmd/Makefile.com
          +++ new/usr/src/lib/libcmd/Makefile.com
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  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 (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  
  27   28  SHELL=/usr/bin/ksh93
  28   29  
  29   30  LIBRARY =       libcmd.a
  30   31  VERS =          .1
  31   32  OBJECTS =       \
  32   33          basename.o \
  33   34          cat.o \
  34   35          chgrp.o \
↓ open down ↓ 96 lines elided ↑ open up ↑
 131  132          $(ASTCFLAGS)
 132  133  CFLAGS64 += \
 133  134          $(ASTCFLAGS64)
 134  135  
 135  136  CERRWARN        += -_gcc=-Wno-unused-value
 136  137  CERRWARN        += -_gcc=-Wno-parentheses
 137  138  CERRWARN        += -_gcc=-Wno-uninitialized
 138  139  CERRWARN        += -_gcc=-Wno-unused-variable
 139  140  CERRWARN        += -_gcc=-Wno-implicit-function-declaration
 140  141  
      142 +# not linted
      143 +SMATCH=off
      144 +
 141  145  pics/cut.o      := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 142  146  pics/sync.o     := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 143  147  pics/vmstate.o  := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 144  148  
 145  149  .KEEP_STATE:
 146  150  
 147  151  all: $(LIBS) 
 148  152  
 149  153  #
 150  154  # libcmd is not lint-clean yet; fake up a target.  (You can use
 151  155  # "make lintcheck" to actually run lint; please send all lint fixes
 152  156  # upstream (to AT&T) so the next update will pull them into ON.)
 153  157  #
 154  158  lint:
 155  159          @ print "usr/src/lib/libcmd is not lint-clean: skipping"
 156  160  
 157  161  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX