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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/tcpd/Makefile
          +++ new/usr/src/cmd/tcpd/Makefile
   1    1  #
   2    2  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3    3  # Use is subject to license terms.
   4    4  #
   5    5  # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
   6    6  #
        7 +# Copyright (c) 2018, Joyent, Inc.
   7    8  
   8    9  PROG=           safe_finger tcpd tcpdchk tcpdmatch try-from
   9   10  
  10   11  include         ../Makefile.cmd
  11   12  
  12   13  CFLAGS +=       $(CCVERBOSE)
  13   14  CPPFLAGS +=     $(ACCESS) $(PARANOID) $(NETGROUP) $(TLI) \
  14   15                  $(UMASK) $(STYLE) $(TABLES) $(KILL_OPT) $(BUGS) \
  15   16                  -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
  16   17                  -DFACILITY=$(FACILITY) -DSEVERITY=$(SEVERITY) \
↓ open down ↓ 5 lines elided ↑ open up ↑
  22   23  
  23   24  CERRWARN +=     -erroff=E_FUNC_HAS_NO_RETURN_STMT
  24   25  CERRWARN +=     -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
  25   26  CERRWARN +=     -_gcc=-Wno-unused-variable
  26   27  CERRWARN +=     -_gcc=-Wno-parentheses
  27   28  CERRWARN +=     -_gcc=-Wno-uninitialized
  28   29  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  29   30  CERRWARN +=     -_gcc=-Wno-return-type
  30   31  CERRWARN +=     -_gcc=-Wno-clobbered
  31   32  
       33 +# not linted
       34 +SMATCH=off
       35 +
  32   36  # Various components must export interfaces, but also contain name-space
  33   37  # clashes with system libraries.
  34   38  MAPFILE.INT.D=  $(MAPFILE.NGB) mapfile-intf-tcpdchk
  35   39  MAPFILE.INT.M=  $(MAPFILE.NGB) mapfile-intf-tcpdmatch
  36   40  MAPFILE.INT.F=  $(MAPFILE.NGB) mapfile-intf-tryfrom
  37   41  
  38   42  tcpdchk :=      LDFLAGS +=$(MAPFILE.INT.D:%=-M%)
  39   43  tcpdmatch :=    LDFLAGS +=$(MAPFILE.INT.M:%=-M%)
  40   44  try-from :=     LDFLAGS +=$(MAPFILE.INT.F:%=-M%)
  41   45  
↓ open down ↓ 169 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX