summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-01-01 14:10:22 +0200
committerMonty <monty@mariadb.org>2018-01-01 14:10:22 +0200
commit322c637c1c7717b5d33e4d7670a39eae17040e3c (patch)
tree385fe35df07f997cef688af8735c941f19cd8ada /sql/opt_range.cc
parent7703095d2e26a15d4ecbd3683f9779b97f851c98 (diff)
downloadmariadb-git-322c637c1c7717b5d33e4d7670a39eae17040e3c.tar.gz
Fixed compiler warnings about possible uninitialized variables
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 04d2059eb62..7d57bbf4cb8 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -6729,7 +6729,7 @@ static TRP_RANGE *get_key_scans_params(PARAM *param, SEL_TREE *tree,
bool update_tbl_stats,
double read_time)
{
- uint idx, best_idx;
+ uint idx, UNINIT_VAR(best_idx);
SEL_ARG *key_to_read= NULL;
ha_rows UNINIT_VAR(best_records); /* protected by key_to_read */
uint UNINIT_VAR(best_mrr_flags), /* protected by key_to_read */