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

no return statement in function returning non-void #9

Open
rpavlik opened this issue Jan 6, 2020 · 0 comments
Open

no return statement in function returning non-void #9

rpavlik opened this issue Jan 6, 2020 · 0 comments

Comments

@rpavlik
Copy link

@rpavlik rpavlik commented Jan 6, 2020

virtual bool getEvent(sensors_event_t* event) {

This results in the following warning when "More" warnings mode is on:

In file included from /home/ryan/Arduino/libraries/Adafruit_LSM9DS1_Library/Adafruit_LSM9DS1.cpp:15:0:
/home/ryan/Arduino/libraries/Adafruit_LSM9DS1_Library/Adafruit_LSM9DS1.h: In member function 'virtual bool Adafruit_LSM9DS1::Sensor::getEvent(sensors_event_t*)':
/home/ryan/Arduino/libraries/Adafruit_LSM9DS1_Library/Adafruit_LSM9DS1.h:230:7: warning: no return statement in function returning non-void [-Wreturn-type]
       }
       ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.