add default branch for switch

without which, there may be many warning while complying