Beta version 2.9.13: Mark 'isPrefix' as '[[maybe_unused]]'.

This commit is contained in:
John Preston 2021-08-31 12:45:31 +03:00
parent 4598ce2671
commit cbe38af427

View file

@ -319,7 +319,7 @@ FormatResult CountriesInstance::format(FormatArgs args) {
const Info *bestCountryPtr = nullptr;
const CallingCodeInfo *bestCallingCodePtr = nullptr;
auto bestLength = size_t(0);
auto isPrefix = false;
[[maybe_unused]] auto isPrefix = false;
for (const auto &country : list()) {
for (auto &callingCode : country.codes) {
if (phoneNumber.startsWith(callingCode.callingCode)) {