Skip to content

Fix most of the "dangerousTypeCast" cppcheck warnings#3806

Merged
rmu75 merged 1 commit intoLinuxCNC:masterfrom
BsAtHome:fix_cppcheck-old-c-casts
Feb 16, 2026
Merged

Fix most of the "dangerousTypeCast" cppcheck warnings#3806
rmu75 merged 1 commit intoLinuxCNC:masterfrom
BsAtHome:fix_cppcheck-old-c-casts

Conversation

@BsAtHome
Copy link
Contributor

This PR addresses the cppcheck message: "warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast]".

Most are fixed by converting to C++ typecasts. Some are still not fixed because those files could create conflicts and more changes are in the pipeline.

@smoe
Copy link
Collaborator

smoe commented Feb 15, 2026

@andypugh, please merge this one.

@rmu75 rmu75 merged commit f69c1da into LinuxCNC:master Feb 16, 2026
14 checks passed
@rmu75
Copy link
Collaborator

rmu75 commented Feb 16, 2026

Merging as @andypugh is on holiday

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