Skip to content

Commit

Permalink
Removing warnings/errors for missing returns
Browse files Browse the repository at this point in the history
  • Loading branch information
totalgee committed Sep 14, 2013
1 parent 3ad7955 commit 9f1b524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/ofxBox2dBaseShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ void* ofxBox2dBaseShape::setData(void*data) {
else {
ofLog(OF_LOG_NOTICE, "ofxBox2dBaseShape:: - must have a valid body -");
}
return NULL;
}

//------------------------------------------------
Expand Down
5 changes: 3 additions & 2 deletions src/ofxBox2dPolygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,10 @@ void ofxBox2dPolygon::addRepulsionForce(ofVec2f pt, float amt) {

//----------------------------------------
vector <ofPoint>& ofxBox2dPolygon::getVertices() {
if(body == NULL) {
return;
static vector <ofPoint> emptyVertices;
return emptyVertices;
}

const b2Transform& xf = body->GetTransform();
Expand Down

0 comments on commit 9f1b524

Please sign in to comment.