From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1A15922AED for ; Mon, 3 Sep 2018 12:16:27 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5V2n3doal-FP for ; Mon, 3 Sep 2018 12:16:27 -0400 (EDT) Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 5C34E22A2D for ; Mon, 3 Sep 2018 12:16:26 -0400 (EDT) From: Alexander Turenko Subject: [tarantool-patches] [PATCH] Fix -Werror -Wimplicit-fallthrough build Date: Mon, 3 Sep 2018 19:16:05 +0300 Message-Id: <47969ef684b1bb3f4c93aa308a919f2b0758f9a6.1535989378.git.alexander.turenko@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: Kirill Yukhin Cc: Alexander Turenko , tarantool-patches@freelists.org -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