From 5bb92a4277357564a9a5e8d6dd7013be7c412a0a Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Thu, 21 Jun 2018 20:09:27 +0300 Subject: [PATCH] mdbx: add `fallthrough` for modern gcc. Change-Id: I948adc0e534dd9ba42b7d64e8105870cc77f82e6 --- mdb.c | 3 ++- mdb_dump.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mdb.c b/mdb.c index 669aae0a..eff5dbe7 100644 --- a/mdb.c +++ b/mdb.c @@ -7032,7 +7032,8 @@ more: offset *= 4; /* space for 4 more */ break; } - /* FALLTHRU: Big enough MDB_DUPFIXED sub-page */ + /* Big enough MDB_DUPFIXED sub-page */ + /* fallthrough */ case MDB_CURRENT | MDB_NODUPDATA: case MDB_CURRENT: fp->mp_flags |= P_DIRTY; diff --git a/mdb_dump.c b/mdb_dump.c index 0b5db58e..485f8f4f 100644 --- a/mdb_dump.c +++ b/mdb_dump.c @@ -186,7 +186,7 @@ int main(int argc, char *argv[]) break; case 'l': list = 1; - /*FALLTHROUGH*/; + /* fallthrough */ case 'a': if (subname) usage(prog);