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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/print/libipp-core/Makefile.com
          +++ new/usr/src/lib/print/libipp-core/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 2006 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 =               libipp-core.a
  27   28  VERS =                  .0
  28   29  OBJECTS = ipp.o ipp_types.o read.o strings.o write.o
  29   30  
  30   31  include ../../../Makefile.lib
  31   32  include ../../../Makefile.rootfs
  32   33  
  33   34  SRCDIR =        ../common
  34   35  
↓ open down ↓ 4 lines elided ↑ open up ↑
  39   40  $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
  40   41  
  41   42  CFLAGS +=       $(CCVERBOSE)
  42   43  CPPFLAGS +=     -I$(SRCDIR)
  43   44  CPPFLAGS +=     -I../../libpapi-common/common
  44   45  
  45   46  CERRWARN +=     -_gcc=-Wno-unused-variable
  46   47  CERRWARN +=     -_gcc=-Wno-char-subscripts
  47   48  CERRWARN +=     -_gcc=-Wno-switch
  48   49  
       50 +SMOFF += all_func_returns
       51 +
  49   52  MAPFILES =      $(SRCDIR)/mapfile
  50   53  
  51   54  LDLIBS +=       -lpapi-common -lc
  52   55  
  53   56  .KEEP_STATE:
  54   57  
  55   58  all:    $(LIBS)
  56   59  
  57   60  lint:   lintcheck
  58   61  
  59   62  include ../../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX