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 on Arduino 1.8,13 #3

Closed
VisionEngineer opened this issue Mar 1, 2021 · 1 comment
Closed

Compile error on Arduino 1.8,13 #3

VisionEngineer opened this issue Mar 1, 2021 · 1 comment

Comments

@VisionEngineer
Copy link

Hi, getting a compile error on downloaded code 071c4fa
on 30 May 2020
as follows:
no idea what" attribute" is, so cannot move forward.

sketch\PassThrough.cpp: In member function 'unsigned int PassThrough::Check(HardwareSerial&)':
PassThrough.cpp:57:9: error: expected primary-expression before 'attribute'
attribute ((fallthrough));
^
exit status 1
expected primary-expression before 'attribute'

Regards, Robert.

@dc42
Copy link
Contributor

dc42 commented Mar 1, 2021

The token in the source code is actually __attribute__ (two leading and two trailing underscores). It compiles correctly for me using Arduino 1.8.12.

If necessary, you can remove that line. Its only purpose is to suppress the "no break at end of case" warning that may otherwise be generated.

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