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

Fix CNFGHandleInput() return type mismatch #112

Merged
merged 1 commit into from
Nov 17, 2024
Merged

Conversation

yewnyx
Copy link
Contributor

@yewnyx yewnyx commented Nov 17, 2024

Was poking at this to see if I could get it running on my ESP32 but the first stumbling block was a compile error arising from conflicting declarations of CNFGHandleInput().

I replaced the stub function implementations in the Null and WASM drivers with ones that returned an int (specifically, 0).

@dreua
Copy link
Member

dreua commented Nov 17, 2024

That looks like a mistake to me. Iirc many c compilers treat void and int the same, that would make this go unnoticed. Let's hope I'm not missing some C details which need this as void at some point 😉

@dreua dreua merged commit e83d72f into cntools:master Nov 17, 2024
1 check passed
@cnlohr
Copy link
Member

cnlohr commented Nov 17, 2024

Thanks for catching that.

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.

3 participants