enumeration declaration

and this was because you did not have else at the last if? this is like a default situation in switch() i think.