add WARN flag into default flags