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

corec: check/fix pointer alignment #206

Merged
merged 5 commits into from
Jan 4, 2025
Merged

Conversation

robUx4
Copy link
Contributor

@robUx4 robUx4 commented Jan 4, 2025

Let the compiler detect suspicious casts.

robUx4 added 5 commits January 4, 2025 10:39
It's not on by default but may signal some bogus casts that will break
eventually.
It should not be possible but it's more correct.
maybe the malloc will work
It would be better not to use it at all.
It is less flexible than void* be can still be casted to
other types more loosely than other types.
It allows finding bogus cast alignment that void* doesn't see.
@robUx4 robUx4 merged commit 6390b11 into Matroska-Org:master Jan 4, 2025
5 checks passed
@robUx4 robUx4 deleted the more-warnings branch January 4, 2025 10:14
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.

1 participant