Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not wrap static variadic functions #2499

Merged
merged 4 commits into from
Apr 13, 2023

Conversation

pvdrz
Copy link
Contributor

@pvdrz pvdrz commented Apr 11, 2023

Currently there is no way to generate a wrapper for a static variadic function while using the --wrap-static-fns feature.

These changes modify bindgen's behavior so such functions are skipped instead of generating invalid code for them. At the same time, a warning is emitted if the --emit-diagnostics feature is enabled.

Fixes #2498

Currently there is no way to generate a wrapper for a static variadic
function while using the `--wrap-static-fns` feature.

These changes modify `bindgen`'s behavior so such functions are skipped
instead of generating invalid code for them. At the same time, a warning
is emitted if the `--emit-diagnostics` feature is enabled.
bindgen/codegen/mod.rs Outdated Show resolved Hide resolved
@pvdrz pvdrz merged commit 4f9fcbf into rust-lang:main Apr 13, 2023
@pvdrz pvdrz deleted the dont-wrap-variadic-fns branch April 13, 2023 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mishandle of variadic function with wrapped static functions
2 participants