Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

"Skipped by case label" compile errors on Windows #27

Closed
kitschpatrol opened this Issue · 0 comments

2 participants

@kitschpatrol

Just ran into this, sorry don't have time to send a pull at the moment. On Windows (VS2010), you'll get a skipped by case label error regarding innerMouth and faceOutline in ofxFaceTracker.cpp unless you put brackets around those case statements. (Scope issue.)

Here's the block in question with the bracket fix:

vector<int> ofxFaceTracker::getFeatureIndices(Feature feature) {
    switch(feature) {
        case LEFT_JAW: return consecutive(0, 9);
        case RIGHT_JAW: return consecutive(8, 17);
        case JAW: return consecutive(0, 17);
        case LEFT_EYEBROW: return consecutive(17, 22);
        case RIGHT_EYEBROW: return consecutive(22, 27);
        case LEFT_EYE: return consecutive(36, 42);
        case RIGHT_EYE: return consecutive(42, 48);
        case OUTER_MOUTH: return consecutive(48, 60);
        case INNER_MOUTH: {
            static int innerMouth[] = {48,60,61,62,54,63,64,65};
            return vector<int>(innerMouth, innerMouth + 8);
        }
        case NOSE_BRIDGE: return consecutive(27, 31);
        case NOSE_BASE: return consecutive(31, 36);
        case FACE_OUTLINE: {
            static int faceOutline[] = {17,18,19,20,21,22,23,24,25,26, 16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0};
            return vector<int>(faceOutline, faceOutline + 27);
        }
        case ALL_FEATURES: return consecutive(0, 66);
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.