Skip to content

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

@Lauszus

Description

@Lauszus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions