Skip to content

Commit 407530e

Browse files
committed
rust: bindgen: Make snd_dec_flac opaque
At least with certain some rust / bindgen combinations compilation fails with: error[E0587]: type has conflicting packed and align representation hints --> /Transit/build/linux/rust/bindings/bindings_generated.rs:102244:1 | 102244 | pub struct snd_dec_flac { | ^^^^^^^^^^^^^^^^^^^^^^^ Signed-off-by: Janne Grunau <[email protected]>
1 parent 0f83d66 commit 407530e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/bindgen_parameters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
--opaque-type x86_msi_data
1414
--opaque-type x86_msi_addr_lo
1515

16+
# Packed types cannot have larger alignment than the maximal natural aligment of menbers
17+
--opaque-type snd_dec_flac
18+
1619
# `try` is a reserved keyword since Rust 2018; solved in `bindgen` v0.59.2,
1720
# commit 2aed6b021680 ("context: Escape the try keyword properly").
1821
--opaque-type kunit_try_catch

0 commit comments

Comments
 (0)