See https://github.com/Revolutionary-Games/Thrive/blob/master/src/ogre/script_bindings.cpp#L60 for how to cast functions without disabling warnings.