Skip to content

Commit 75490bd

Browse files
committed
rust: bindgen: -Wimplicit-fallthrough=% does not use quotes anymore
Mainline commit cd8c917 ('Makefile: Do not quote value for CONFIG_CC_IMPLICIT_FALLTHROUGH') fixes the added quotes in the flags, thus we do not need the special case anymore. This reverts commit 56aa8af ('rust: bindgen: fix filtering of `-Wimplicit-fallthrough=%`'). Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent c2ae669 commit 75490bd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

rust/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,9 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
202202
-Wno-packed-not-aligned -Wno-format-truncation -Wno-format-overflow \
203203
-Wno-stringop-truncation -Wno-unused-but-set-variable \
204204
-Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized \
205-
-Werror=designated-init -Wno-zero-length-bounds \
205+
-Werror=designated-init -Wno-zero-length-bounds -Wimplicit-fallthrough=% \
206206
-Wno-alloc-size-larger-than --param=% --param asan-%
207207

208-
# We need to keep the quotes for this one -- it comes from a `Kconfig`
209-
bindgen_skip_c_flags += "-Wimplicit-fallthrough=%"
210-
211208
# PowerPC
212209
bindgen_skip_c_flags += -mtraceback=no -mno-pointers-to-nested-functions \
213210
-mno-string -mno-strict-align

0 commit comments

Comments
 (0)