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/util-tests/tests/libnvpair_json/Makefile
+++ new/usr/src/test/util-tests/tests/libnvpair_json/Makefile
1 1 #
2 2 # This file and its contents are supplied under the terms of the
↓ open down ↓ |
2 lines elided |
↑ open up ↑ |
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
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 -# Copyright (c) 2014 Joyent, Inc.
13 +# Copyright 2019 Joyent, Inc.
14 14 #
15 15
16 16 include $(SRC)/Makefile.master
17 17
18 18 ROOTOPTPKG = $(ROOT)/opt/util-tests
19 19 TESTDIR = $(ROOTOPTPKG)/tests/libnvpair_json
20 20 ROOTBINDIR = $(ROOTOPTPKG)/bin
21 21
22 22 PROG = print_json
23 23
24 24 SCRIPTS = \
25 25 json_00_blank \
26 26 json_01_boolean \
27 27 json_02_numbers \
28 28 json_03_empty_arrays \
29 29 json_04_number_arrays \
30 30 json_05_strings \
31 31 json_06_nested \
32 32 json_07_nested_arrays \
33 33 json_common
34 34
35 35 include $(SRC)/cmd/Makefile.cmd
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
36 36 include $(SRC)/test/Makefile.com
37 37
38 38 OBJS = $(PROG:%=%.o)
39 39 SRCS = $(OBJS:%.o=%.c)
40 40
41 41 CMDS = $(PROG:%=$(ROOTBINDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
42 42 $(CMDS) := FILEMODE = 0555
43 43
44 44 LDLIBS += -lnvpair
45 45
46 -LINTFLAGS += -erroff=E_FUNC_ARG_UNUSED
46 +# intentional abort()
47 +SMOFF += unreachable
47 48
48 49 all: $(PROG)
49 50
50 51 $(PROG): $(OBJS)
51 52 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
52 53 $(POST_PROCESS)
53 54
54 55 install: all $(CMDS)
55 56
56 57 lint: lint_SRCS
57 58
58 59 clobber: clean
59 60 -$(RM) $(PROG)
60 61
61 62 clean:
62 63 -$(RM) $(OBJS)
63 64
64 65 $(CMDS): $(TESTDIR) $(PROG)
65 66
66 67 $(ROOTBINDIR):
67 68 $(INS.dir)
68 69
69 70 $(ROOTBINDIR)/%: %
70 71 $(INS.file)
71 72
72 73 $(TESTDIR):
73 74 $(INS.dir)
74 75
75 76 $(TESTDIR)/%: %.ksh
76 77 $(INS.rename)
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX