Skip to content

Alignment issues on at least ARM #462

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

Open
neheb opened this issue May 28, 2025 · 0 comments
Open

Alignment issues on at least ARM #462

neheb opened this issue May 28, 2025 · 0 comments

Comments

@neheb
Copy link
Contributor

neheb commented May 28, 2025

../src/torrent/net/socket_address_key.h:41:3: warning: field  within 'torrent::socket_address_key' is less aligned than 'torrent::socket_address_key::(anonymous union at ../src/torrent/net/socket_address_key.h:41:3)' and is usually due to 'torrent::socket_address_key' being packed, which can lead to unaligned accesses [-Wunaligned-access

That union should probably be using std::variant.

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

1 participant