Skip to content

Non-void functions don't return value #3

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

Open
nseidle opened this issue Sep 17, 2019 · 0 comments
Open

Non-void functions don't return value #3

nseidle opened this issue Sep 17, 2019 · 0 comments

Comments

@nseidle
Copy link
Member

nseidle commented Sep 17, 2019

It compiles but with warnings. I think they can be solved pretty easily.

Compiled on Artemis (tighter compiler warnings):

C:\Users\nathan.seidle\Dropbox\Apps\Arduino\libraries\SparkFun_Qwiic_Button_Arduino_Library-master\src\SparkFun_Qwiic_Button.cpp: In member function 'uint8_t QwiicButton::readSingleRegister(Qwiic_Button_Register)':
C:\Users\nathan.seidle\Dropbox\Apps\Arduino\libraries\SparkFun_Qwiic_Button_Arduino_Library-master\src\SparkFun_Qwiic_Button.cpp:301:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
C:\Users\nathan.seidle\Dropbox\Apps\Arduino\libraries\SparkFun_Qwiic_Button_Arduino_Library-master\src\SparkFun_Qwiic_Button.cpp: In member function 'uint16_t QwiicButton::readDoubleRegister(Qwiic_Button_Register)':
C:\Users\nathan.seidle\Dropbox\Apps\Arduino\libraries\SparkFun_Qwiic_Button_Arduino_Library-master\src\SparkFun_Qwiic_Button.cpp:317:1: warning: control reaches end of non-void function [-Wreturn-type]
}

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