turn on -Werror and fix resulting errors

This could have quite evil consequences in case this function is called in flight. We should never use an assert in anything that could be called while in air.
We'll work out the missing transform and provide it as comment.