mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-25 09:44:27 +08:00
mdbx: add/fix 'fallthrough' for GCC 7.x
Change-Id: I45c57ea910978aaa857086d7794ad92ba0ae7157
This commit is contained in:
committed by
Leonid Yuriev
parent
03db768830
commit
6f6b360aba
@@ -718,6 +718,7 @@ static int check_meta_head(bool steady) {
|
||||
assert(false);
|
||||
error(" - unexpected internal error (%s)\n",
|
||||
steady ? "meta_steady_head" : "meta_weak_head");
|
||||
__fallthrough;
|
||||
case 0:
|
||||
if (envinfo.mi_meta0_txnid != envinfo.mi_recent_txnid) {
|
||||
print(" - meta-%d txn-id mismatch recent-txn-id (%" PRIi64 " != %" PRIi64
|
||||
|
@@ -195,6 +195,7 @@ int main(int argc, char *argv[]) {
|
||||
case 'l':
|
||||
list = 1;
|
||||
/*FALLTHROUGH*/;
|
||||
__fallthrough;
|
||||
case 'a':
|
||||
if (subname)
|
||||
usage(prog);
|
||||
|
Reference in New Issue
Block a user