You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run ofxFaceTracker with the current nightly (which I believe is nearing 0.10.0) I get the following error:
of/addons/ofxFaceTracker/src/ofxFaceTracker.cpp:45:1:
error: control reaches end of non-void function [-Werror=return-type]
This function is vector<int> ofxFaceTracker::getFeatureIndices(Feature feature) which returns a vector related to different facial features (case LEFT_EYE_TOP: return consecutive(36, 40);), but if nothing gets caught by the switch statement, nothing will be returned.
I fixed / hacked this by simply adding return std::vector<int>(0, 0); as the last line of the function, which seems to work.
I'd make a pull request with my 'fix', but as I'm not sure what it is I changed, I thought creating an issue might be better.
Sidenote: Arturo mentioned somewhere "we are moving towards using std:: explicitly in headers to at some point remove the global include for std". The ofFaceTracker script still uses plain vector in some places, which might have to be changed to std::vector at some point?
The text was updated successfully, but these errors were encountered:
When trying to run ofxFaceTracker with the current nightly (which I believe is nearing 0.10.0) I get the following error:
This function is
vector<int> ofxFaceTracker::getFeatureIndices(Feature feature)
which returns a vector related to different facial features (case LEFT_EYE_TOP: return consecutive(36, 40);
), but if nothing gets caught by the switch statement, nothing will be returned.I fixed / hacked this by simply adding
return std::vector<int>(0, 0);
as the last line of the function, which seems to work.I'd make a pull request with my 'fix', but as I'm not sure what it is I changed, I thought creating an issue might be better.
Sidenote: Arturo mentioned somewhere
"we are moving towards using std:: explicitly in headers to at some point remove the global include for std"
. TheofFaceTracker
script still uses plainvector
in some places, which might have to be changed tostd::vector
at some point?The text was updated successfully, but these errors were encountered: