Bug 1447480 - Add a MOZ_ASSERT to make it clear that it can never fall through r=hsivonen

MozReview-Commit-ID: Hq9jG1CVwRK

--HG--
extra : rebase_source : 4c548c1ad0c74b2c810b435701b91bd4f7893cb1
This commit is contained in:
Sylvestre Ledru 2018-04-03 13:40:59 +02:00
parent 4c98f9ad50
commit 599ea080ac
2 changed files with 2 additions and 0 deletions

View File

@ -1167,6 +1167,7 @@ public abstract class TreeBuilder<T> implements TokenHandler,
*/
continue;
}
// CPPONLY: MOZ_FALLTHROUGH_ASSERT();
default:
/*
* A character token that is not one of one of

View File

@ -399,6 +399,7 @@ nsHtml5TreeBuilder::characters(const char16_t* buf,
continue;
}
}
MOZ_FALLTHROUGH_ASSERT();
}
default: {
switch (mode) {