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

compile error misleading-indentation #54

Open
sanyatuning opened this issue Aug 5, 2023 · 1 comment
Open

compile error misleading-indentation #54

sanyatuning opened this issue Aug 5, 2023 · 1 comment

Comments

@sanyatuning
Copy link

There are some compile errors with platformio.

main/ognconv.h:58:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ognconv.h:67:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/parameters.h:697:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/parameters.h:700:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/parameters.h:720:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/parameters.h:834:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ldpc.cpp:671:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ldpc.cpp:692:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ognconv.cpp:102:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ognconv.cpp:173:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
main/ognconv.cpp:189:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]

Can you help to fix these?
I don't sure which one is the correct:
A. Fix indentation (in some places add "else" keyword)
B. Add curly braces

@sanyatuning
Copy link
Author

example: main/ldpc.cpp:671:

if(Count&1) ParByte|=Mask; Mask<<=1;

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