mdbx: add fallthrough for modern gcc.

Change-Id: I948adc0e534dd9ba42b7d64e8105870cc77f82e6
This commit is contained in:
Leo Yuriev 2018-06-21 20:09:27 +03:00
parent c381573d1f
commit 5bb92a4277
2 changed files with 3 additions and 2 deletions

3
mdb.c
View File

@ -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;

View File

@ -186,7 +186,7 @@ int main(int argc, char *argv[])
break;
case 'l':
list = 1;
/*FALLTHROUGH*/;
/* fallthrough */
case 'a':
if (subname)
usage(prog);