Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/test/libc-tests/tests/Makefile
          +++ new/usr/src/test/libc-tests/tests/Makefile
↓ open down ↓ 4 lines elided ↑ open up ↑
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright (c) 2012 by Delphix. All rights reserved.
  14   14  # Copyright 2015 Garrett D'Amore <garrett@damore.org>
  15      -# Copyright (c) 2018, Joyent, Inc.
       15 +# Copyright 2019 Joyent, Inc.
  16   16  #
  17   17  
  18   18  SUBDIRS = \
  19   19          catopen \
  20   20          fpround \
  21   21          newlocale \
  22   22          nl_langinfo \
  23   23          priv_gettext \
  24   24          random \
  25   25          regex \
↓ open down ↓ 25 lines elided ↑ open up ↑
  51   51          wcsncasecmp-7344 \
  52   52          wcsncasecmp-7350
  53   53  
  54   54  SCRIPTS = \
  55   55          quick_exit \
  56   56          psignal
  57   57  
  58   58  CPPFLAGS += -D_REENTRANT
  59   59  
  60   60  # needs work
  61      -SMOFF += all_func_returns,snprintf_overflow
       61 +SMOFF += all_func_returns,snprintf_overflow,unreachable
  62   62  
  63   63  PROGS32 = $(PROGS:%=%.32)
  64   64  PROGS64 = \
  65   65          $(PROGS:%=%.64) \
  66   66          printf-6961.64
  67   67  
  68   68  aligned_alloc.32 :=     LDLIBS += -lproc
  69   69  aligned_alloc.64 :=     LDLIBS64 += -lproc
  70   70  posix_memalign.32 :=    LDLIBS += -lproc
  71   71  posix_memalign.64 :=    LDLIBS64 += -lproc
↓ open down ↓ 53 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX