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
Fixing -Wmisleading-indentation #90
Comments
It's a bit lot of 'else if's... Maybe a 'switch' or similar would be better suited to shorten the code (and possibly making it more efficient)?! Edit: Well, I am not sure if it would work. I just skimmed over it and realized there are quite few similar vars to compare with... Hm... |
We cannot use a switch-case block with bitwise operations. |
Yes... I was too fast on posting and edited my post. I still think there could be an alternative/shorter code. But it probably doesn't matter much anyway. |
My own thoughts about these:
|
Just reopen #31 cause I fixed in #88 only part of warnings. There is still some of them:
Im not completely sure if this is real missing brackets or just indentation problem. For example first warning can bi fixed in such way:
or in such way:
And this code isnt that easy so I will left it here - maybe somebody with better skills can dig in it.
The text was updated successfully, but these errors were encountered: