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 https://stackoverflow.com/questions/9385812/c-template-error-no-return-in-function-returning-non-void?rq=1, 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 https://github.com/edap/ofxAnimationPrimitives