-Wmaybe-uninitialized sql_planner.cc compilation warnings

Bug #1660628 reported by Laurynas Biveinis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Invalid
Undecided
Unassigned
5.6
Fix Released
Low
Przemyslaw Skibinski
5.7
Invalid
Undecided
Unassigned

Bug Description

Copy of https://bugs.mysql.com/bug.php?id=77637:

/root/mysql-5.6.25/sql/sql_planner.cc: In member function ‘void Optimize_table_order::best_access_path(JOIN_TAB*, table_map, uint, bool, double, POSITION*, POSITION*)’:
/root/mysql-5.6.25/sql/sql_planner.cc:431: warning: ‘loose_scan_opt.Loose_scan_opt::best_loose_scan_start_key’ may be used uninitialized in this function
/root/mysql-5.6.25/sql/sql_planner.cc:431: warning: ‘loose_scan_opt.Loose_scan_opt::best_max_loose_keypart’ may be used uninitialized in this function
/root/mysql-5.6.25/sql/sql_planner.cc:431: warning: ‘loose_scan_opt.Loose_scan_opt::best_loose_scan_records’ may be used uninitialized in this function
/root/mysql-5.6.25/sql/sql_planner.cc:431: warning: ‘loose_scan_opt.Loose_scan_opt::best_loose_scan_key’ may be used uninitialized in this function
/root/mysql-5.6.25/sql/sql_planner.cc:431: warning: ‘loose_scan_opt.Loose_scan_opt::quick_max_loose_keypart’ may be used uninitialized in this function

Tags: upstream
tags: added: upstream
Revision history for this message
Przemyslaw Skibinski (pskibinski) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3632

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.