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 1175F25FF2 for ; Fri, 26 Jul 2019 13:53:52 -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 LB3iUdDy_VHB for ; Fri, 26 Jul 2019 13:53:52 -0400 (EDT) Received: from smtp5.mail.ru (smtp5.mail.ru [94.100.179.24]) (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 C80BE25FF1 for ; Fri, 26 Jul 2019 13:53:51 -0400 (EDT) Date: Fri, 26 Jul 2019 20:53:49 +0300 From: Kirill Yukhin Subject: [tarantool-patches] Re: [PATCH v1] LTO build fails on warning message Message-ID: <20190726175349.63xc5teltd77gn2r@tarantool.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: tarantool-patches@freelists.org Cc: "Alexander V. Tikhonov" Hello, On 25 июл 17:44, Alexander V. Tikhonov wrote: > The uninitialized variable found that caused the fail on build, > due to LTO builds with flag to check warnings as errors. Set the > variable to 0 initial value. The found issue was: > > [100%] Built target xrow.test > src/box/sql/vdbe.c: In function ‘sqlVdbeExec’: > src/box/sql/vdbe.c:3691:11: error: ‘id’ may be used uninitialized > in this function [-Werror=maybe-uninitialized] > uint64_t id; > ^ > lto1: all warnings being treated as errors > lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status > compilation terminated. > /usr/bin/ld: error: lto-wrapper failed > collect2: error: ld returned 1 exit status > > Closes #4378 I've checked the patch into master. -- Regards, Kirill Yukhin