|
@@ -174,14 +174,14 @@ endif
|
174
|
174
|
# Inhibit this.
|
175
|
175
|
#
|
176
|
176
|
ifeq ($(CCTYPE),gcc)
|
177
|
|
-WNA_TEST = $(CC) -Wno-address -x c -c /dev/null -o /dev/null >/dev/null 2>&1
|
|
177
|
+WNA_TEST = $(CC) -Waddress -x c -c /dev/null -o /dev/null >/dev/null 2>&1
|
178
|
178
|
WNA_FLAGS := $(shell $(WNA_TEST) && $(ECHO) '-Wno-address')
|
179
|
179
|
WORKAROUND_CFLAGS += $(WNA_FLAGS)
|
180
|
180
|
|
181
|
181
|
# gcc 8.0 generates warnings for certain suspect string operations. Our
|
182
|
182
|
# sources have been vetted for correct usage. Turn off these warnings.
|
183
|
183
|
#
|
184
|
|
-WNST_TEST = $(CC) -Wno-stringop-truncation -x c -c /dev/null -o /dev/null \
|
|
184
|
+WNST_TEST = $(CC) -Wstringop-truncation -x c -c /dev/null -o /dev/null \
|
185
|
185
|
>/dev/null 2>&1
|
186
|
186
|
WNST_FLAGS := $(shell $(WNST_TEST) && $(ECHO) '-Wno-stringop-truncation')
|
187
|
187
|
WORKAROUND_CFLAGS += $(WNST_FLAGS)
|