Error in commit - wrong forward declartion of a function