Lines 119-133
Link Here
|
119 |
# Compiler flags for describing the output path |
119 |
# Compiler flags for describing the output path |
120 |
CFLAGSOUTOBJ=-o |
120 |
CFLAGSOUTOBJ=-o |
121 |
|
121 |
|
122 |
CFLAGSWARNCC=-Wreturn-type |
|
|
123 |
.IF "$(PRODUCT)"!="" |
124 |
CFLAGWARNCC+=-Wuninitialized # not supported without optimization |
125 |
.ENDIF |
126 |
CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy |
127 |
# -Wshadow does not work for C with nested uses of pthread_cleanup_push: |
122 |
# -Wshadow does not work for C with nested uses of pthread_cleanup_push: |
128 |
CFLAGSWALLCC=-Wall -Wextra -Wendif-labels |
123 |
CFLAGSWARNCC=-Wall -Wextra -Wendif-labels |
129 |
CFLAGSWALLCXX=$(CFLAGSWALLCC) -Wshadow -Wno-ctor-dtor-privacy |
124 |
CFLAGSWARNCXX=$(CFLAGSWALLCC) -Wshadow -Wno-ctor-dtor-privacy \ |
|
|
125 |
-Wno-non-virtual-dtor-privacy |
126 |
CFLAGSWALLCC=$(CFLAGSWARNCC) |
127 |
CFLAGSWALLCXX=$(CFLAGSWARNCXX) |
130 |
CFLAGSWERRCC=-Werror |
128 |
CFLAGSWERRCC=-Werror |
|
|
129 |
|
130 |
# Once all modules on this platform compile without warnings, set |
131 |
# COMPILER_WARN_ERRORS=TRUE here instead of setting MODULES_WITH_W |
132 |
# settings.mk): |
133 |
MODULES_WITH_WARNINGS := \ |
134 |
b_server \ |
135 |
basctl \ |
136 |
binfilter \ |
137 |
chart2 \ |
138 |
cppcanvas \ |
139 |
desktop \ |
140 |
devtools \ |
141 |
dxcanvas \ |
142 |
extensions \ |
143 |
filter \ |
144 |
finalize \ |
145 |
glcanvas \ |
146 |
instset_native \ |
147 |
instsetoo_native \ |
148 |
lingu \ |
149 |
postprocess \ |
150 |
r_tools \ |
151 |
sc \ |
152 |
sch \ |
153 |
sd \ |
154 |
slideshow \ |
155 |
smoketest_native \ |
156 |
smoketestoo_native \ |
157 |
starmath \ |
158 |
svx \ |
159 |
sw \ |
160 |
top \ |
161 |
writerperfect \ |
162 |
xmlsecurity |
131 |
|
163 |
|
132 |
# switches for dynamic and static linking |
164 |
# switches for dynamic and static linking |
133 |
STATIC = -Wl,-Bstatic |
165 |
STATIC = -Wl,-Bstatic |