Print this page
10078 smatch fixes for UCB

Split Close
Expand all
Collapse all
          --- old/usr/src/ucblib/libucb/Makefile.com
          +++ new/usr/src/ucblib/libucb/Makefile.com
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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 (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  #
       24 +# Copyright (c) 2018, Joyent, Inc.
  24   25  
  25   26  LIBRARY=        libucb.a
  26   27  VERS=           .1
  27   28  
  28   29  PORTSYSOBJS=            \
  29   30          flock.o         \
  30   31          getdtblsize.o   \
  31   32          gethostid.o     \
  32   33          gethostname.o   \
  33   34          getpagesize.o   \
↓ open down ↓ 57 lines elided ↑ open up ↑
  91   92  LDLIBS +=       -lelf -lc
  92   93  
  93   94  CPPFLAGS = -D$(MACH) -I$(SRC)/ucbhead -I../inc \
  94   95                  -I../../../lib/libc/inc $(CPPFLAGS.master)
  95   96  
  96   97  CERRWARN +=     -_gcc=-Wno-unused-variable
  97   98  CERRWARN +=     -_gcc=-Wno-parentheses
  98   99  CERRWARN +=     -_gcc=-Wno-char-subscripts
  99  100  CERRWARN +=     -_gcc=-Wno-uninitialized
 100  101  
      102 +# not linted
      103 +SMATCH=off
      104 +
 101  105  ASFLAGS= -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS)
 102  106  
 103  107  pics/%.o:= ASFLAGS += $(AS_PICFLAGS)
 104  108  
 105  109  # libc method of building an archive, using AT&T ordering
 106  110  BUILD.AR= $(RM) $@ ; \
 107  111          $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
 108  112  
 109  113  .KEEP_STATE:
 110  114  
↓ open down ↓ 27 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX