Print this page
10078 smatch fixes for UCB

Split Close
Expand all
Collapse all
          --- old/usr/src/ucbcmd/Makefile.ucbcmd
          +++ new/usr/src/ucbcmd/Makefile.ucbcmd
↓ 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 2008 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  # ucbcmd/Makefile.ucbcmd
  28   29  #
  29   30  # Definitions common to ucb command source.
  30   31  #
  31   32  # include global definitions; SRC should be defined in the shell.
  32   33  # SRC is needed until RFE 1026993 is implemented.
  33   34  
  34   35  include $(SRC)/Makefile.master
  35   36  
↓ open down ↓ 15 lines elided ↑ open up ↑
  51   52  
  52   53  ROOTPROG=       $(PROG:%=$(ROOTBIN)/%)
  53   54  ROOTLIBPROG=    $(PROG:%=$(ROOTLIB)/%)
  54   55  ROOT4LIBPROG=   $(PROG:%=$(ROOT4LIB)/%)
  55   56  ROOTETCPROG=    $(PROG:%=$(ROOTETC)/%)
  56   57  ROOTPROG64=     $(PROG:%=$(ROOTBIN64)/%)
  57   58  ROOTPROG32=     $(PROG:%=$(ROOTBIN32)/%)
  58   59  
  59   60  ISAEXEC=        $(ROOT)/usr/lib/isaexec
  60   61  
       62 +# don't lint any of ucbcmd
       63 +SMATCH=off
       64 +
  61   65  # storing LDLIBS in two macros allows reordering of options
  62   66  LDLIBS.cmd =    $(ENVLDLIBS1)  $(ENVLDLIBS2)  $(ENVLDLIBS3)
  63   67  LDLIBS =        $(LDLIBS.cmd)
  64   68  
  65   69  LDFLAGS.cmd = \
  66   70          $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
  67   71          $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
  68   72  
  69   73  LDFLAGS =       $(LDFLAGS.cmd)
  70   74  
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX