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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/nscd/Makefile
          +++ new/usr/src/cmd/nscd/Makefile
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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  # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
       23 +# Copyright (c) 2018, Joyent, Inc.
  23   24  #
  24   25  # Makefile for name service cache daemon
  25   26  #
  26   27  
  27   28  PROG=           nscd
  28   29  MANIFEST=       name-service-cache.xml
  29   30  SVCMETHOD=      svc-nscd
  30   31  
  31   32  include ../Makefile.cmd
  32   33  
↓ open down ↓ 23 lines elided ↑ open up ↑
  56   57                  -I../../lib/libsldap/common
  57   58  LINTFLAGS +=    -erroff=E_GLOBAL_COULD_BE_STATIC2
  58   59  LINTFLAGS +=    -erroff=E_NAME_USED_NOT_DEF2
  59   60  LINTFLAGS +=    -erroff=E_NAME_DEF_NOT_USED2
  60   61  
  61   62  CERRWARN +=     -_gcc=-Wno-switch
  62   63  CERRWARN +=     -_gcc=-Wno-uninitialized
  63   64  CERRWARN +=     -_gcc=-Wno-parentheses
  64   65  CERRWARN +=     -_gcc=-Wno-type-limits
  65   66  
       67 +# not linted
       68 +SMATCH=off
       69 +
  66   70  # nscd interposes on many symbols, and must export others for its own dlsym()
  67   71  # use, and dlsym() calls from libc.  Itemizing the interfaces within a mapfile
  68   72  # is error-prone, so establish the whole object as an interposer.
  69   73  LDFLAGS +=      $(ZINTERPOSE)
  70   74  
  71   75  # TCOV_FLAG=    -ql
  72   76  
  73   77  PROGLIBS=       $(LDLIBS) -lresolv -lnsl -lsocket -lumem -lscf -lavl
  74   78  
  75   79  # install macros and rule
↓ open down ↓ 31 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX