Silence warning on formatting an enum type