<p>Tarantool version:<br>
master</p>
<p>OS version:<br>
Linux</p>
<p>Bug description:</p>
<pre><code>LTO build failed because of warnings on the uninitialized
variables treated as errors:
/mnt/src/box/tuple_update.c: In function ‘do_op_splice’:
/mnt/src/box/tuple_update.c:764:15: error: ‘str_len’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
arg->offset = str_len;
^
/mnt/src/box/tuple_update.c:755:10: note: ‘str_len’ was declared here
int32_t str_len;
^
/mnt/src/box/tuple_update.c: In function ‘do_op_bit’:
/mnt/src/box/tuple_update.c:725:12: error: ‘val’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
arg->val &= val;
^
/mnt/src/box/tuple_update.c:720:11: note: ‘val’ was declared here
uint64_t val;
^
/mnt/src/box/tuple_update.c: In function ‘update_read_ops’:
/mnt/src/box/tuple_update.c:1068:4: error: ‘field_no’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
diag_set(ClientError, ER_NO_SUCH_FIELD_NO, field_no);
^
/mnt/src/box/tuple_update.c:1057:10: note: ‘field_no’ was declared here
int32_t field_no;
^
lto1: all warnings being treated as errors
</code></pre>
<p>Steps to reproduce:<br>
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_WERROR=ON -DENABLE_LTO=ON && make -j</p>
<p>Optional (but very desirable):</p>
<ul>
<li>coredump</li>
<li>backtrace</li>
<li>netstat</li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/tarantool/tarantool/issues/4512?email_source=notifications&email_token=AABMOFBFHIQ7PWDHRA7SK6DQKMVEZA5CNFSM4IYHUMDKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMKXRXQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AABMOFFGEO4EXTGD5HD4UR3QKMVEZANCNFSM4IYHUMDA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AABMOFH7Q2LGS7JOTY5JNKLQKMVEZA5CNFSM4IYHUMDKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMKXRXQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/tarantool/tarantool/issues/4512?email_source=notifications\u0026email_token=AABMOFBFHIQ7PWDHRA7SK6DQKMVEZA5CNFSM4IYHUMDKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMKXRXQ",
"url": "https://github.com/tarantool/tarantool/issues/4512?email_source=notifications\u0026email_token=AABMOFBFHIQ7PWDHRA7SK6DQKMVEZA5CNFSM4IYHUMDKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMKXRXQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>