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 E7A0123455 for ; Fri, 13 Sep 2019 04:08:57 -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 W9opSsRyLORo for ; Fri, 13 Sep 2019 04:08:57 -0400 (EDT) Received: from smtp14.mail.ru (smtp14.mail.ru [94.100.181.95]) (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 39DE723269 for ; Fri, 13 Sep 2019 04:08:57 -0400 (EDT) Date: Fri, 13 Sep 2019 11:08:50 +0300 From: Kirill Yukhin Subject: [tarantool-patches] Re: [PATCH v1 1/1] box: fix compilation with old gcc Message-ID: <20190913080850.2uyoygnxihd3lsdz@tarantool.org> References: <740f63cb096b85d45d39de0cf8a52752fe4de7ce.1568041833.git.kshcherbatov@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <740f63cb096b85d45d39de0cf8a52752fe4de7ce.1568041833.git.kshcherbatov@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: tarantool-patches@freelists.org Cc: alexander.turenko@tarantool.org, Kirill Shcherbatov Hello, On 09 Sep 18:11, Kirill Shcherbatov wrote: > LTO build fails on warning message: > In file included from /tarantool/src/lib/core/diag.h:33:0, > from /tarantool/src/box/engine.h:36, > from /tarantool/src/box/memtx_engine.h:40, > from /tarantool/src/box/memtx_engine.c:31: > /tarantool/src/box/memtx_engine.c: In function > 'metmx_tuple_chunk_delete': > /tarantool/src/trivia/util.h:201:49: error: initialization from > incompatible pointer type [-Werror] > const typeof( ((type *)0)->member ) *__mptr = (ptr); \ > ^ > /tarantool/src/box/memtx_engine.c:1115:3: note: in expansion of macro > 'container_of' > container_of((typeof(tuple_chunk->data) *)data, > ^ > /tarantool/src/trivia/util.h:201:49: error: (near initialization for > 'tuple_chunk') [-Werror] > const typeof( ((type *)0)->member ) *__mptr = (ptr); \ > ^ > /tarantool/src/box/memtx_engine.c:1115:3: note: in expansion of macro > 'container_of' > container_of((typeof(tuple_chunk->data) *)data, I've checked your patch into 2.2 and master. -- Regards, Kirill Yukhin