@@ -205,11 +205,6 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
205
205
-fno-partial-inlining -fplugin-arg-arm_ssp_per_task_plugin-% \
206
206
-fno-reorder-blocks -fno-allow-store-data-races -fasan-shadow-offset=% \
207
207
-fzero-call-used-regs=% \
208
- -Wno-packed-not-aligned -Wno-format-truncation -Wno-format-overflow \
209
- -Wno-stringop-truncation -Wno-unused-but-set-variable \
210
- -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized \
211
- -Werror=designated-init -Wno-zero-length-bounds -Wimplicit-fallthrough=% \
212
- -Wno-alloc-size-larger-than -Wcast-function-type \
213
208
--param=% --param asan-%
214
209
215
210
# Derived from `scripts/Makefile.clang`
@@ -220,9 +215,11 @@ BINDGEN_TARGET_riscv := riscv64-linux-gnu
220
215
BINDGEN_TARGET_x86 := x86_64-linux-gnu
221
216
BINDGEN_TARGET := $(BINDGEN_TARGET_$(SRCARCH ) )
222
217
223
- bindgen_extra_c_flags = --target=$(BINDGEN_TARGET ) \
224
- -Wno-address-of-packed-member \
225
- -Wno-gnu-variable-sized-type-not-at-end
218
+ # All warnings are inhibited since GCC builds are very experimental,
219
+ # many GCC warnings are not supported by Clang, they may only appear in
220
+ # some configurations, with new GCC versions, etc.
221
+ bindgen_extra_c_flags = -w --target=$(BINDGEN_TARGET )
222
+
226
223
bindgen_c_flags = $(filter-out $(bindgen_skip_c_flags ) , $(c_flags ) ) \
227
224
$(bindgen_extra_c_flags )
228
225
endif
0 commit comments