ICU-13716 Adding default return values after U_ASSERT(FALSE) to silence compiler warnings in non-debug builds.

X-SVN-Rev: 41305
This commit is contained in:
Shane Carr 2018-05-02 04:29:25 +00:00
parent 3d0bf4b9c7
commit b840d51ed9
2 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,7 @@ Grouper Grouper::forStrategy(UGroupingStrategy grouping) {
return {3, 3, 1, grouping};
default:
U_ASSERT(FALSE);
return {}; // return a value: silence compiler warning
}
}

View File

@ -161,6 +161,7 @@ Notation stem_to_object::notation(skeleton::StemEnum stem) {
return Notation::simple();
default:
U_ASSERT(false);
return Notation::simple(); // return a value: silence compiler warning
}
}
@ -177,6 +178,7 @@ MeasureUnit stem_to_object::unit(skeleton::StemEnum stem) {
return NoUnit::permille(); // NOLINT
default:
U_ASSERT(false);
return {}; // return a value: silence compiler warning
}
}
@ -192,6 +194,7 @@ Rounder stem_to_object::rounder(skeleton::StemEnum stem) {
return Rounder::currency(UCURR_USAGE_CASH);
default:
U_ASSERT(false);
return Rounder::integer(); // return a value: silence compiler warning
}
}
@ -601,6 +604,7 @@ skeleton::parseStem(const StringSegment& segment, const UCharsTrie& stemTrie, Se
default:
U_ASSERT(false);
return STATE_NULL; // return a value: silence compiler warning
}
}