You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the newer version of bindgen treats the [] syntax as zero sized arrays, while they are meant to be pointers.
As far as I could tell, the new behavior has been introduced in 0.21.
When updating to the latest version of Bindgen I ran into the following line from libflac being treated differently:
https://github.com/oneman/libflac/blob/eb9f5de298314e84f810648def81509a69d628a3/include/FLAC/stream_decoder.h#L288
This line denotes an array of strings which length is defined in the C source:
https://github.com/oneman/libflac/blob/eb9f5de298314e84f810648def81509a69d628a3/src/libFLAC/stream_decoder.c#L227
Input C/C++ Header
Bindgen Invokation
Actual Results
Expected Results
It seems that the newer version of bindgen treats the
[]
syntax as zero sized arrays, while they are meant to be pointers.As far as I could tell, the new behavior has been introduced in 0.21.
RUST_LOG=bindgen
OutputThe text was updated successfully, but these errors were encountered: