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

--wrap-static-fns generates code that returns a call to a void function #2485

Closed
ojeda opened this issue Apr 6, 2023 · 3 comments
Closed

Comments

@ojeda
Copy link
Contributor

ojeda commented Apr 6, 2023

Input C/C++ Header

static inline void f(void) {}

Bindgen Invocation

$ bindgen --wrap-static-fns --experimental input.h

Actual Results

In /tmp/bindgen/extern.c:

void f__extern() { return f(); }

Expected Results

In C one should avoid returning a call to a void function to please -Wpedantic:

void f__extern() { f(); }
@pvdrz
Copy link
Contributor

pvdrz commented Apr 10, 2023

This is already fixed and will be available on bindgen 0.65.0

@ojeda
Copy link
Contributor Author

ojeda commented Apr 10, 2023

Thanks!

@pvdrz
Copy link
Contributor

pvdrz commented Apr 10, 2023

Sorry this was fixed here: #2497

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

No branches or pull requests

2 participants