Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/fwflash/Makefile.com
+++ new/usr/src/cmd/fwflash/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
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 #
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
19 19 # CDDL HEADER END
20 20 #
21 21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 24 # Copyright (c) 2018, Joyent, Inc.
25 25 #
26 26 # common rules for $SRC/cmd/fwflash
27 27
28 28 CERRWARN += -_gcc=-Wno-parentheses
29 -CERRWARN += -_gcc=-Wno-uninitialized
29 +CERRWARN += $(CNOWARN_UNINIT)
30 30 CERRWARN += -_gcc=-Wno-address
31 31
32 32 # not linted
33 33 SMATCH=off
34 34
35 35 ROOTUSR= $(ROOT)/usr
36 36 ROOTUSRINCLD= $(ROOTUSR)/include
37 37 ROOTUSRINCLDFWFLASH= $(ROOTUSRINCLD)/fwflash
38 38 ROOTUSRLIB= $(ROOTUSR)/lib
39 39 ROOTUSRLIBFWFLASH= $(ROOTUSRLIB)/fwflash
40 40 ROOTUSRLIBFWFLASHIDF= $(ROOTUSRLIBFWFLASH)/identify
41 41 ROOTUSRLIBFWFLASHVRF= $(ROOTUSRLIBFWFLASH)/verify
42 42 ROOTUSRSBIN= $(ROOTUSR)/sbin
43 43
44 44 $(ROOTUSR):
45 45 $(INS.dir)
46 46
47 47 $(ROOTUSRINCLD): $(ROOTUSR)
48 48 $(INS.dir)
49 49
50 50 $(ROOTUSRINCLDFWFLASH):
51 51 $(INS.dir)
52 52
53 53 $(ROOTUSRINCLDFWFLASH)/%: $(ROOTUSRINCLDFWFLASH) %
54 54 $(INS.file)
55 55
56 56 $(ROOTUSRLIB):
57 57 $(INS.dir)
58 58
59 59 $(ROOTUSRLIBFWFLASH): $(ROOTUSRLIB)
60 60 $(INS.dir)
61 61
62 62 $(ROOTUSRLIBFWFLASH)/%: $(ROOTUSRLIB) %
63 63 $(INS.dir)
64 64
65 65 $(ROOTUSRLIBFWFLASHIDF): $(ROOTUSRLIBFWFLASH)
66 66 $(INS.dir)
67 67
68 68 $(ROOTUSRLIBFWFLASHIDF)/%: $(ROOTUSRLIBFWFLASHIDF) %
69 69 $(INS.file)
70 70
71 71 $(ROOTUSRLIBFWFLASHVRF): $(ROOTUSRLIBFWFLASH)
72 72 $(INS.dir)
73 73
74 74 $(ROOTUSRLIBFWFLASHVRF)/%: $(ROOTUSRLIBFWFLASHVRF) %
75 75 $(INS.file)
76 76
77 77 $(ROOTUSRSBIN): $(ROOTUSR)
78 78 $(INS.dir)
79 79
80 80 $(ROOTUSRSBIN)/%: %
81 81 $(INS.file)
82 82
83 83
84 84
85 85 %.ln: $(SRCDIR)/%.c
86 86 $(LINT.c) $(LINTFLAGS) -c $<
87 87
88 88 %.po: $(SRCDIR)/%.c
89 89 $(RM) messages.po
90 90 $(XGETTEXT) $(XGETFLAGS) \
91 91 `($(GREP) -l gettext $< || echo /dev/null)`
92 92 $(SED) "/^domain/d" messages.po > $@
93 93 $(RM) messages.po
94 94
95 95 $(POFILE): $(POFILES)
96 96 $(RM) $@
97 97 cat $(POFILES) >$@
98 98
99 99 LINTFLAGS += -D_POSIX_PTHREAD_SEMANTICS -erroff=E_CONSTANT_CONDITION \
100 100 -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
↓ open down ↓ |
61 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX