[tarantool-patches] [PATCH] Fix -Werror -Wimplicit-fallthrough build
Alexander Turenko
alexander.turenko at tarantool.org
Mon Sep 3 19:16:05 MSK 2018
-Wimplicit-fallthrough is enabled by -Wextra on GCC 7, so it breaks our
Debug build with this version of the compiler.
Fixes #3658.
---
branch: https://github.com/tarantool/tarantool/tree/Totktonada/gh-3658-fix-gcc-7
issue: https://github.com/tarantool/tarantool/issues/3658
src/box/sql/insert.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/box/sql/insert.c b/src/box/sql/insert.c
index 550514c03..f7d489fe3 100644
--- a/src/box/sql/insert.c
+++ b/src/box/sql/insert.c
@@ -891,6 +891,7 @@ vdbe_emit_constraint_checks(struct Parse *parse_context, struct Table *tab,
switch (on_conflict_nullable) {
case ON_CONFLICT_ACTION_ABORT:
sqlite3MayAbort(parse_context);
+ FALLTHROUGH;
case ON_CONFLICT_ACTION_ROLLBACK:
case ON_CONFLICT_ACTION_FAIL:
err_msg = sqlite3MPrintf(db, "%s.%s", def->name,
--
2.17.1
More information about the Tarantool-patches
mailing list