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

Avoid calculations with void pointers #3352

Merged
merged 1 commit into from
Mar 2, 2025

Conversation

BsAtHome
Copy link
Contributor

Cppcheck indicated several instances where calculations were performed using void pointers. The problem is that sizeof(void) is undefined in the C/C++ standards. Most compilers use the value of one (1), but it is better to use char pointer in calculations and cast back to void pointer where appropriate. This PR fixes all instances of void pointer calculations.

@andypugh andypugh merged commit 713bd91 into LinuxCNC:master Mar 2, 2025
8 checks passed
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.

2 participants