-
Notifications
You must be signed in to change notification settings - Fork 39
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
Remove C-isms? #37
Comments
One particular suggestion, should we ever get around to it: remove C-style casts. :) |
I think we'll never fix those if we get too many of them, so I'm enabling Sending out a codeflow shortly. |
Enable -Wold-style-cast and also remove all existing C-style casts. Doing this found multiple places where const was incorrectly being cast away, as well as some pointless casting of size_t down to int.
Enable -Wold-style-cast and also remove all existing C-style casts. Doing this found multiple places where const was incorrectly being cast away, as well as some pointless casting of size_t down to int.
Enable -Wold-style-cast and also remove all existing C-style casts. Doing this found multiple places where const was incorrectly being cast away, as well as some pointless casting of size_t down to int.
Enable -Wold-style-cast and also remove all existing C-style casts. Doing this found multiple places where const was incorrectly being cast away, as well as some pointless casting of size_t down to int.
We have a lot of C-isms in the older BitFunnel code. From talking to @MikeHopcroft , there seems to be no particular reason for this expect that this code is old and was written by people coming in with a C background.
I suspect this bug is so low priority that we'll never get to it, but it would be nice to clean some of this up.
The text was updated successfully, but these errors were encountered: