Print this page
10076 make usr/src/test smatch clean

Split Close
Expand all
Collapse all
          --- old/usr/src/test/smbclient-tests/cmd/Makefile.cmd
          +++ new/usr/src/test/smbclient-tests/cmd/Makefile.cmd
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4  # You may only use this file in accordance with the terms of version
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
       14 +# Copyright (c) 2018, Joyent, Inc.
  14   15  #
  15   16  
  16   17  include         $(SRC)/test/Makefile.com
  17   18  
  18   19  OBJS=           $(PROG:%=%.o)
  19   20  SRCS=           $(OBJS:%.o=%.c)
  20   21  
  21   22  ROOTPROG=       $(PROG:%=$(ROOTBINDIR)/%)
  22   23  $(ROOTPROG) :=  FILEMODE = 0555
  23   24  
  24   25  CPPFLAGS +=     -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  25   26  
  26   27  LINTFLAGS +=    -erroff=E_BAD_FORMAT_STR2
  27   28  LINTFLAGS +=    -erroff=E_NAME_DECL_NOT_USED_DEF2
  28   29  LINTFLAGS +=    -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  29   30  
       31 +# needs work
       32 +SMOFF += all_func_returns,leaks
       33 +
  30   34  all:            $(PROG)
  31   35  
  32   36  $(PROG):        $(OBJS)
  33   37                  $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  34   38                  $(POST_PROCESS)
  35   39  
  36   40  %.o:            %.c
  37   41                  $(COMPILE.c) $<
  38   42                  $(POST_PROCESS_O)
  39   43  
↓ open down ↓ 17 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX