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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/cfgadm_plugins/fp/Makefile.com
          +++ new/usr/src/lib/cfgadm_plugins/fp/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  # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -#
       25 +# Copyright (c) 2018, Joyent, Inc.
  26   26  
  27   27  LIBRARY= fp.a
  28   28  VERS= .1
  29   29  
  30      -OBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o 
       30 +OBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o
  31   31  OBJECTS += cfga_cvt.o cfga_list.o cfga_rep.o
  32   32  
  33   33  # include library definitions
  34   34  include ../../../Makefile.lib
  35   35  
  36   36  SRCDIR =        ../common
  37   37  ROOTLIBDIR=     $(ROOT)/usr/lib/cfgadm
  38   38  ROOTLIBDIR64=   $(ROOTLIBDIR)/$(MACH64)
  39   39  
  40   40  LIBS=   $(DYNLIB)
↓ open down ↓ 3 lines elided ↑ open up ↑
  44   44  
  45   45  CFLAGS +=       $(CCVERBOSE)
  46   46  CFLAGS64 +=     $(CCVERBOSE)
  47   47  
  48   48  CERRWARN +=     -_gcc=-Wno-parentheses
  49   49  CERRWARN +=     -_gcc=-Wno-char-subscripts
  50   50  CERRWARN +=     -_gcc=-Wno-uninitialized
  51   51  CERRWARN +=     -_gcc=-Wno-switch
  52   52  CERRWARN +=     -_gcc=-Wno-address
  53   53  
       54 +# not linted
       55 +SMATCH=off
       56 +
  54   57  CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
  55   58  
  56   59  LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
  57   60  LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
  58   61  LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  59   62  LINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
  60   63  LINTFLAGS += -erroff=E_SEC_CREAT_WITHOUT_MODE
  61   64  LINTFLAGS64 += $(LINTFLAGS)
  62   65  
  63   66  LDLIBS +=       -lc -ldevice -ldevinfo -lrcm
↓ open down ↓ 44 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX