[MDEV-13222] warning: ‘ph0’ / ‘ph2’ may be used uninitialized in this function Created: 2017-06-29  Updated: 2017-07-03  Resolved: 2017-07-03

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.2.6
Fix Version/s: 10.2.7

Type: Bug Priority: Minor
Reporter: Guillermo Céspedes Tabárez Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: compile, warning
Environment:

Debian 8.8 x32 - Digitalocean

  1. uname -a
    Linux framework 3.16.0-4-686-pae #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) i686 GNU/Linux


 Description   

[ 66%] Building CXX object storage/connect/CMakeFiles/connect.dir/ha_connect.cc.o
/var/tmp/mariadb_build/mariadb_src/storage/connect/ha_connect.cc: In member function ‘CONDFIL* ha_connect::CheckCond(PGLOBAL, PCFIL, const Item*)’:
/var/tmp/mariadb_build/mariadb_src/storage/connect/ha_connect.cc:2744:29: warning: ‘ph2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ph1= ph2 + strlen(ph2);
^
/var/tmp/mariadb_build/mariadb_src/storage/connect/ha_connect.cc:2768:13: warning: ‘ph0’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*ph0 = 0;
^



 Comments   
Comment by Elena Stepanova [ 2017-07-03 ]

It used to happen in buildbot
http://buildbot.askmonty.org/buildbot/builders/kvm-deb-jessie-x86/builds/2308/steps/compile/logs/warnings%20%2874%29

But not anymore after this merge:

commit 8f643e2063c9890a353149f39ef85b2cf3151fd0
Merge: 3aecedb b61700c
Author: Marko Mäkelä <marko.makela@mariadb.com>
Date:   Tue May 23 11:09:47 2017 +0300
 
    Merge 10.1 into 10.2

Generated at Thu Feb 08 08:03:52 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.