|
@@ -185,6 +185,15 @@ 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)
|
|
188
|
+
|
|
189
|
+# gcc 9.1 generates warnings for taking address of packed member which
|
|
190
|
+# may result in an unaligned pointer value. Inhibit the warnings.
|
|
191
|
+#
|
|
192
|
+WNAPM_TEST = $(CC) -Wno-address-of-packed-member -x c -c /dev/null \
|
|
193
|
+ -o /dev/null >/dev/null 2>&1
|
|
194
|
+WNAPM_FLAGS := $(shell $(WNAPM_TEST) && \
|
|
195
|
+ $(ECHO) '-Wno-address-of-packed-member')
|
|
196
|
+WORKAROUND_CFLAGS += $(WNAPM_FLAGS)
|
188
|
197
|
endif
|
189
|
198
|
|
190
|
199
|
# Some versions of gas choke on division operators, treating them as
|