diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-07 07:12:20 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-07 00:11:12 -0700 |
commit | 1342c8f18e48afd1577cfdc319c254ce7c42637e (patch) | |
tree | c054031cab85d1973000e1f153a6ff6b1874f2e6 /tests/unit/libstore-support | |
parent | 0d9a043f4365100c5b451b6476edb2b9ab09e19b (diff) |
Merge pull request #10074 from lf-/jade/ban-implicit-fallthrough
Warn on implicit switch case fallthrough
(cherry picked from commit 21282c3c204597641402c6bcff8fc9ee7bc31fa1)
Change-Id: I5ebbdfb6c037d2c55254f37dd391c07c2ce7443e
Diffstat (limited to 'tests/unit/libstore-support')
-rw-r--r-- | tests/unit/libstore-support/tests/path.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/libstore-support/tests/path.cc b/tests/unit/libstore-support/tests/path.cc index e5f169e94..8bf501ab6 100644 --- a/tests/unit/libstore-support/tests/path.cc +++ b/tests/unit/libstore-support/tests/path.cc @@ -33,6 +33,7 @@ Gen<StorePathName> Arbitrary<StorePathName>::arbitrary() switch (auto i = *gen::inRange<uint8_t>(0, 10 + 2 * 26 + 6)) { case 0 ... 9: pre += '0' + i; + break; case 10 ... 35: pre += 'A' + (i - 10); break; @@ -52,6 +53,7 @@ Gen<StorePathName> Arbitrary<StorePathName>::arbitrary() pre += '.'; break; } + [[fallthrough]]; case 65: pre += '_'; break; |