No return statement in function returning non-void

I’m tryin to port ofxAnimationPrimitives to the current master.
I’m receiving quite a lot of errors, but most of them are “no return statement in function returning non-void”.

In this precise, I do not know which is the best way to fix the error, it is an operator:

Composition& operator=(const Composition&) {  }

I have read here, that I should simply return

Composition& operator=(const Composition&) { return *this; }

Is this the correct approach?

Ok, it looks like this fixed it. I get all the examples working with the current OF master, repo here