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

raspberry pi 4 warnings and error #4

Open
stephanschulz opened this issue Jan 6, 2020 · 1 comment
Open

raspberry pi 4 warnings and error #4

stephanschulz opened this issue Jan 6, 2020 · 1 comment

Comments

@stephanschulz
Copy link

I am using OF 0.11 on RPI 4 and get these errors which I do not get on macOS.

Will start poking around and see if I can figure this out.

/home/pi/openFrameworks/addons/ofxTiming/src/FadeTimer.h: In constructor ‘FadeTimer::FadeTimer()’: /home/pi/openFrameworks/addons/ofxTiming/src/FadeTimer.h:10:7: warning: ‘FadeTimer::direction’ will be initialized after [-Wreorder] bool direction; ^~~~~~~~~ /home/pi/openFrameworks/addons/ofxTiming/src/FadeTimer.h:9:9: warning: ‘double FadeTimer::referenceTime’ [-Wreorder] double referenceTime, risingLength, fallingLength; ^~~~~~~~~~~~~ /home/pi/openFrameworks/addons/ofxTiming/src/FadeTimer.h:12:2: warning: when initialized here [-Wreorder] FadeTimer() ^~~~~~~~~ In file included from /home/pi/openFrameworks/addons/ofxTiming/src/ofxTiming.h:8, from /home/pi/openFrameworks/addons/ofxTiming/example/src/main.cpp:2: /home/pi/openFrameworks/addons/ofxTiming/src/DurationTimer.h: In function ‘std::__cxx11::string humanDuration(float, int)’: /home/pi/openFrameworks/addons/ofxTiming/src/DurationTimer.h:27:1: error: control reaches end of non-void function [-Werror=return-type]

@stephanschulz
Copy link
Author

stephanschulz commented Mar 7, 2022

adding return ""; between line 26 and 27 seems to resolve this problem.

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