daemon fix build warnings of class Event