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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/pkcs11/pkcs11_kernel/Makefile.com
          +++ new/usr/src/lib/pkcs11/pkcs11_kernel/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 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  LIBRARY= pkcs11_kernel.a
  27   28  VERS= .1
  28   29  
  29   30  CORE_OBJECTS= \
  30   31          kernelGeneral.o         \
  31   32          kernelSlottable.o       \
  32   33          kernelSlotToken.o       \
  33   34          kernelObject.o          \
  34   35          kernelDigest.o          \
↓ open down ↓ 46 lines elided ↑ open up ↑
  81   82          $(CORE_OBJECTS:%.o=$(SRCDIR)/%.c)
  82   83  
  83   84  LIBS    =       $(DYNLIB)
  84   85  LDLIBS  +=      -lc -lcryptoutil -lmd
  85   86  
  86   87  CFLAGS  +=      $(CCVERBOSE)
  87   88  
  88   89  CERRWARN +=     -_gcc=-Wno-uninitialized
  89   90  CERRWARN +=     -_gcc=-Wno-unused-label
  90   91  
       92 +# not linted
       93 +SMATCH=off
       94 +
  91   95  ROOTLIBDIR=     $(ROOT)/usr/lib/security
  92   96  ROOTLIBDIR64=   $(ROOT)/usr/lib/security/$(MACH64)
  93   97  
  94   98  .KEEP_STATE:
  95   99  
  96  100  all:    $(LIBS)
  97  101  
  98  102  # we don't need to lint ST_OBJECTS since they are linted elsewhere.
  99  103  lintcheck := SRCS = $(CORESRCS)
 100  104  lintother := OSRCS = ../common/kernelSoftCommon.c
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX