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

Return statement with no value #1

Closed
Twilight-Logic opened this issue Feb 10, 2019 · 1 comment
Closed

Return statement with no value #1

Twilight-Logic opened this issue Feb 10, 2019 · 1 comment
Assignees

Comments

@Twilight-Logic
Copy link
Owner

Twilight-Logic commented Feb 10, 2019

When compiling the following error is returned:

AR488-0-45-10.ino: In function 'bool gpibSendData(char*, uint8_t)':
AR488-0-45-10:1964: error: return-statement with no value, in function returning 'bool' [-fpermissive]

@Twilight-Logic Twilight-Logic self-assigned this Feb 10, 2019
@Twilight-Logic
Copy link
Owner Author

Twilight-Logic commented Feb 10, 2019

Function gpibSendData() changed from type bool to type void as the routine does not return a value. Type bool in the definition appears to be a carry-over from earlier development work and the missing return value was not flagged by the Arduino 1.8.7/1.8.8 IDE being used for development.

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