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

Clean compile warnings #395

Merged
merged 4 commits into from
Jan 8, 2025
Merged

Clean compile warnings #395

merged 4 commits into from
Jan 8, 2025

Conversation

tsnoam
Copy link
Contributor

@tsnoam tsnoam commented Jan 5, 2025

with so_mark, i went with an abstraction which has no memory footprint nor runtime overhead.
this is because so_mark was used in so many places and I didn't want to add the lint attributes everywhere in the code.

with ip_transparent i chose a more ad-hoc approach, as it was the only one place

@tsnoam tsnoam force-pushed the clean_compile_warnings branch from 257360d to c02eaa8 Compare January 7, 2025 09:36
@tsnoam
Copy link
Contributor Author

tsnoam commented Jan 7, 2025

@erebe I've cleaned up this PR and rebased it on top of latest main.

I suggest reading it commit by commit (I think it will make more sense that way), but you can read it as a whole just as well.

@tsnoam
Copy link
Contributor Author

tsnoam commented Jan 7, 2025

oh, and i've made sure to run clippy, tests & a basic manual test of the server/client on both macos & linux.

@erebe
Copy link
Owner

erebe commented Jan 7, 2025

Only a single comment to see if we can't use #[repr(transparent)]
but nice work 👍

tsnoam added 4 commits January 8, 2025 11:45
…ed variables / dead code.

unlike so_mark, which was used in many places, these are two isolated cases, so no need to go crazy and define an abstraction
@tsnoam tsnoam force-pushed the clean_compile_warnings branch from c02eaa8 to f32d93b Compare January 8, 2025 09:45
@tsnoam
Copy link
Contributor Author

tsnoam commented Jan 8, 2025

thanks @erebe
fixed

@erebe erebe merged commit 066b4f7 into erebe:main Jan 8, 2025
13 checks passed
@erebe
Copy link
Owner

erebe commented Jan 8, 2025

Thank you ;-)

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.

None yet

2 participants