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:
parent
3d0bf4b9c7
commit
b840d51ed9
@ -48,6 +48,7 @@ Grouper Grouper::forStrategy(UGroupingStrategy grouping) {
|
|||||||
return {3, 3, 1, grouping};
|
return {3, 3, 1, grouping};
|
||||||
default:
|
default:
|
||||||
U_ASSERT(FALSE);
|
U_ASSERT(FALSE);
|
||||||
|
return {}; // return a value: silence compiler warning
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,6 +161,7 @@ Notation stem_to_object::notation(skeleton::StemEnum stem) {
|
|||||||
return Notation::simple();
|
return Notation::simple();
|
||||||
default:
|
default:
|
||||||
U_ASSERT(false);
|
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
|
return NoUnit::permille(); // NOLINT
|
||||||
default:
|
default:
|
||||||
U_ASSERT(false);
|
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);
|
return Rounder::currency(UCURR_USAGE_CASH);
|
||||||
default:
|
default:
|
||||||
U_ASSERT(false);
|
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:
|
default:
|
||||||
U_ASSERT(false);
|
U_ASSERT(false);
|
||||||
|
return STATE_NULL; // return a value: silence compiler warning
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user