Skip to content

error: this 'else' clause does not guard... [-Werror=misleading-indentation] #69

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

Closed
Lauszus opened this issue Aug 8, 2019 · 4 comments

Comments

@Lauszus
Copy link
Contributor

Lauszus commented Aug 8, 2019

Due to the mix of spaces and tabs used for indentation the following lines:

else
UDD_Send8(EP0, 0); // TODO
UDD_Send8(EP0, 0);
are causing the following warning:

/home/travis/.platformio/packages/framework-arduinosam/cores/sam/USB/USBCore.cpp: In function 'void USB_ISR()':
/home/travis/.platformio/packages/framework-arduinosam/cores/sam/USB/USBCore.cpp:688:21: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
                     else
                     ^~~~
/home/travis/.platformio/packages/framework-arduinosam/cores/sam/USB/USBCore.cpp:690:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
         UDD_Send8(EP0, 0);
         ^~~~~~~~~

See: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/569237654

A fix would simply be to replace all tabs with spaces or vice versa.

@arduinotech
Copy link

Fix please

@jarusRnD
Copy link

jarusRnD commented Mar 3, 2020

Did it resolve?

@Lauszus
Copy link
Contributor Author

Lauszus commented Mar 4, 2020

@Lauszus
Copy link
Contributor Author

Lauszus commented Nov 15, 2020

Seems like this was fixed in: 790ff2c, so closing this issue.

@Lauszus Lauszus closed this as completed Nov 15, 2020
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

3 participants