Print this page
10080 smatch Makefile changes for usr/src/cmd

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ksh/Makefile.com
          +++ new/usr/src/cmd/ksh/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  #
  23   23  # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  SHELL=/usr/bin/ksh93
  27   28  
  28   29  PROG= ksh
  29   30  
  30   31  USRKSH_ALIAS_LIST=ksh ksh93 rksh rksh93
  31   32  
  32   33  OBJECTS= \
  33   34          pmain.o
  34   35  
↓ open down ↓ 20 lines elided ↑ open up ↑
  55   56  
  56   57  CFLAGS += \
  57   58          $(ASTCFLAGS)
  58   59  CFLAGS64 += \
  59   60          $(ASTCFLAGS64)
  60   61  
  61   62  # Workaround for CR#6628728 ("|memcntl()| prototype not available for C99/XPG6")
  62   63  pmain.o := CERRWARN += -_gcc=-Wno-implicit-function-declaration
  63   64  pmain.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
  64   65  
       66 +# not linted
       67 +SMATCH=off
       68 +
  65   69  .KEEP_STATE:
  66   70  
  67   71  %.o:    $(LIBSHELLSRC)/%.c
  68   72          $(COMPILE.c) -c -o $@ $<
  69   73          $(POST_PROCESS_O)
  70   74  
  71   75  all:    $(PROG)
  72   76  
  73   77  # We explicitly delete "ksh" and "ksh93" to catch changes in
  74   78  # BUILD_KSH93_AS_BINKSH (see Makefile.ksh93switch)
↓ open down ↓ 53 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX