Print this page
gag Studio warnings that only occur with an adjunct proto
Studio has no equivalent to -isystem, and no option to its -errhdr that
seems equivalent. As such, we have to gag the warnings that are induced
from the 3rd party headers when those headers are found via the adjunct,
as they will not match Studio's seemingly hard-coded exception on
`/usr/include`
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/hal/Makefile.hal
+++ new/usr/src/cmd/hal/Makefile.hal
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 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Definitions common for HAL code and consumers
26 26 #
27 27
28 28 HAL_VERSION = 0.5.8
29 29
30 30 ROOTLIB_HAL = $(ROOTLIB)/hal
31 31 ROOTLIB_HAL_SCRIPTS = $(ROOTLIB)/hal
32 32
33 33 ROOT_HAL_FDI = $(ROOT)/etc/hal/fdi
34 34
35 35 HAL_USER = daemon
36 36 HAL_GROUP = daemon
37 37
38 38 # derived from the generated config.h
39 39 HAL_CONFIG_CPPFLAGS = -DPACKAGE_DATA_DIR=\"/usr/lib\" \
40 40 -DPACKAGE_BIN_DIR=\"/usr/bin\" \
41 41 -DPACKAGE_LIBEXEC_DIR=\"/usr/lib/hal\" \
42 42 -DPACKAGE_SCRIPT_DIR=\"/usr/lib/hal\" \
43 43 -DPACKAGE_LOCALSTATEDIR=\"/var\" \
44 44 -DPACKAGE_SYSCONF_DIR=\"/etc\" \
45 45 -DPACKAGE_LOCALE_DIR=\"/usr/lib/locale\" \
46 46 -DPACKAGE_VERSION=\"$(HAL_VERSION)\" \
47 47 -DPACKAGE_STRING=\""hal $(HAL_VERSION)"\" \
48 48 -DHALD_PID_FILE=\"/var/run/hald/pid\" \
49 49 -DHALD_SOCKET_DIR=\"/var/run/hald\" \
50 50 -DHAVE_ASPRINTF \
51 51 -DHAVE_POLKIT \
52 52 -DHWDATA_DIR=\"/usr/share/hwdata\" \
53 53 -DHAL_USER=\"$(HAL_USER)\" \
54 54 -DHAL_GROUP=\"$(HAL_GROUP)\"
55 55
56 56 HAL_DBUS_CPPFLAGS = -DDBUS_API_SUBJECT_TO_CHANGE \
57 57 -DDBUS_SYSTEMD_DIR=\"/etc/dbus-1/system.d\" \
58 58 -I$(ADJUNCT_PROTO)/usr/include/dbus-1.0 \
59 59 -I$(ADJUNCT_PROTO)/usr/lib/dbus-1.0/include
60 60
61 61 HAL_GLIB_CPPFLAGS = -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \
62 62 -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
↓ open down ↓ |
62 lines elided |
↑ open up ↑ |
63 63
64 64 HAL_GETTEXT_PACKAGE = $(TEXT_DOMAIN)
65 65
66 66 CERRWARN += -_gcc=-Wno-unused-variable
67 67 CERRWARN += -_gcc=-Wno-unused-label
68 68 CERRWARN += -_gcc=-Wno-unused-value
69 69 CERRWARN += -_gcc=-Wno-extra
70 70 CERRWARN += -_gcc=-Wno-parentheses
71 71 CERRWARN += -_gcc=-Wno-address
72 72 CERRWARN += -_gcc=-Wno-unused-function
73 +
74 +# This is, unfortunately, from the glib headers. Studio provides no
75 +# equivalent to -isystem
76 +CERRWARN += -_cc=-erroff=E_INTEGER_OVERFLOW_DETECTED
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX