turn on -Werror and fix resulting errors

Could we change this to a no frame size warning flag?