Skip to content

fix: compile error in CI for alt/centos

Arseniy Volynets requested to merge vdbe-limit into 2.11.0-picodata

There was error in CI pack job for some distributions:

[ 89%] Building C object src/box/CMakeFiles/box.dir/sql/build.c.o
In file included from /build/usr/src/debug/tarantool-picodata-2.11.0.19/src/box/key_def.h:36,
                 from /build/usr/src/debug/tarantool-picodata-2.11.0.19/src/box/sql/parse_def.h:35,
                 from /build/usr/src/debug/tarantool-picodata-2.11.0.19/src/box/sql/sqlInt.h:71,
                 from /build/usr/src/debug/tarantool-picodata-2.11.0.19/src/box/sql/build.c:47:
/build/usr/src/debug/tarantool-picodata-2.11.0.19/src/box/sql/build.c: In function 'sql_session_setting_get':
/build/usr/src/debug/tarantool-picodata-2.11.0.19/src/lib/msgpuck/msgpuck.h:2020:10: error: 'engine_len' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   return mp_store_u16(data, len);
          ^~~~~~~~~~~~~~~~~~~~~~~
/build/usr/src/debug/tarantool-picodata-2.11.0.19/src/box/sql/build.c:3322:9: note: 'engine_len' was declared here
  size_t engine_len;
         ^~~~~~~~~~

This commit fixes the issue.

NO_DOC=picodata internal patch NO_CHANGELOG=picodata internal patch NO_TEST=picodata internal patch

Merge request reports