Skip to content

Commit 0fee580

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 <j@jannau.net>
1 parent fbf3bc7 commit 0fee580

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

rust/bindgen_parameters

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

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

0 commit comments

Comments
 (0)