‘c_lock’ may be used uninitialized

Bug #1235635 reported by Alex Yurchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Status tracked in 5.6
5.5
Fix Released
Low
Alex Yurchenko
5.6
Fix Released
Low
Alex Yurchenko

Bug Description

Both 5.5 and 5.6 trees display the following:
storage/innobase/lock/lock0lock.c: In function ‘lock_rec_lock’:
5.5/storage/innobase/lock/lock0lock.c:2296:3: warning: ‘c_lock’ may be used uninitialized in this function [-Wmaybe-uninitialized]
5.5/storage/innobase/lock/lock0lock.c:2234:10: note: ‘c_lock’ was declared here
5.6 tree:
5.6/storage/innobase/lock/lock0lock.cc:2448:43: warning: ‘c_lock’ may be used uninitialized in this function

Revision history for this message
Alex Yurchenko (ayurchen) wrote :

Turns out to be false positive: it may be passed uninitialized to another function, but it would not be used in that case due to another parameter value. Yet looks ugly.

Changed in codership-mysql:
assignee: nobody → Alex Yurchenko (ayurchen)
importance: Undecided → Low
milestone: none → 5.6.14-24.1
Revision history for this message
Alex Yurchenko (ayurchen) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.