Skip to content

quazip/zip.c misleading indentation #369

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
czipperz opened this issue Jun 8, 2016 · 2 comments
Open

quazip/zip.c misleading indentation #369

czipperz opened this issue Jun 8, 2016 · 2 comments

Comments

@czipperz
Copy link

czipperz commented Jun 8, 2016

https://github.com/ccMSC/ckb/blob/master/src/ckb/quazip/zip.c#L538

quazip/zip.c: In function 'zip64local_SearchCentralDir':
quazip/zip.c:530:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (i=(int)uReadSize-3; (i--)>0;)
     ^~~
quazip/zip.c:538:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
       if (uPosFound!=0)
       ^~
@czipperz
Copy link
Author

The if shouldn't indented at all.

@czipperz
Copy link
Author

#381

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