Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/acpica/Makefile
+++ new/usr/src/uts/intel/acpica/Makefile
1 1 #
2 2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 3 # Use is subject to license terms.
4 4 #
5 5 # Copyright (c) 2018, Joyent, Inc.
6 6 #
7 7 #
8 8 # This makefile drives the production of the ACPI CA services
9 9 # kernel module.
10 10 #
11 11 # intel architecture dependent
12 12 #
13 13
14 14 #
15 15 # Path to the base of the uts directory tree (usually /usr/src/uts).
16 16 #
17 17 UTSBASE = ../..
18 18
19 19 #
20 20 # Define the module and object file sets.
21 21 #
22 22 MODULE = acpica
23 23 OBJECTS = $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
24 24 LINTS = $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln)
25 25 ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
26 26 INC_PATH += -I$(UTSBASE)/intel/sys/acpi
27 27 INC_PATH += -I$(UTSBASE)/i86pc
28 28 INC_PATH += -I$(SRC)/common
29 29
30 30 #
31 31 # Include common rules.
32 32 #
33 33 include $(UTSBASE)/intel/Makefile.intel
34 34
35 35 #
36 36 # Define targets
37 37 #
38 38 ALL_TARGET = $(BINARY) $(CONFMOD)
39 39 LINT_TARGET = $(MODULE).lint
40 40 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
41 41
42 42 #
43 43 # Overrides.
44 44 #
45 45 DEBUG_DEFS += $(DEBUG_FLGS)
46 46
47 47 #
48 48 # lint pass one non-enforcement
49 49 #
50 50 CFLAGS += $(CCVERBOSE) -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
51 51
52 52 #
53 53 # 3rd party code is not lint clean
54 54 #
55 55 CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
↓ open down ↓ |
55 lines elided |
↑ open up ↑ |
56 56
57 57 SMOFF += all_func_returns
58 58
59 59 LINTFLAGS += -errchk=%none
60 60 LINTFLAGS += -errhdr=%none
61 61 LINTFLAGS += -erroff=%all
62 62 LINTFLAGS += -errwarn=%none
63 63
64 64 CERRWARN += -_gcc=-Wno-unused-variable
65 65 CERRWARN += -_gcc=-Wno-parentheses
66 -CERRWARN += -_gcc=-Wno-uninitialized
66 +CERRWARN += $(CNOWARN_UNINIT)
67 67 CERRWARN += -_gcc=-Wno-unused-function
68 68
69 69 #
70 70 # Default build targets.
71 71 #
72 72 .KEEP_STATE:
73 73
74 74 def: $(DEF_DEPS)
75 75
76 76 all: $(ALL_DEPS)
77 77
78 78 clean: $(CLEAN_DEPS)
79 79
80 80 clobber: $(CLOBBER_DEPS)
81 81
82 82 lint: $(LINT_DEPS)
83 83
84 84 modlintlib: $(MODLINTLIB_DEPS)
85 85
86 86 clean.lint: $(CLEAN_LINT_DEPS)
87 87
88 88 install: $(INSTALL_DEPS)
89 89
90 90 #
91 91 # Include common targets.
92 92 #
93 93 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX