[tarantool-patches] Re: [PATCH v1 1/1] box: fix compilation with old gcc

Kirill Yukhin kyukhin at tarantool.org
Fri Sep 13 11:08:50 MSK 2019


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




More information about the Tarantool-patches mailing list