esp32-ogn-tracker icon indicating copy to clipboard operation
esp32-ogn-tracker copied to clipboard

compile error misleading-indentation

Open sanyatuning opened this issue 1 year ago • 1 comments

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 avatar Aug 05 '23 09:08 sanyatuning

example: main/ldpc.cpp:671:

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

sanyatuning avatar Aug 05 '23 09:08 sanyatuning