1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

UNINIT_VAR() fixes

Restored self-initialization version of UNINIT_VAR() for all gcc versions.
Fixed UNINIT_VAR() usage: it is supposed to be used along with declaration.
This commit is contained in:
Sergey Vojtovich
2015-08-25 11:46:31 +04:00
parent c18110bd52
commit 27444871a8
4 changed files with 5 additions and 12 deletions

View File

@@ -2933,8 +2933,7 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item **cond)
}
if (i)
{
double selectivity_mult;
UNINIT_VAR(selectivity_mult);
double UNINIT_VAR(selectivity_mult);
/*
There is at least 1-column prefix of columns whose selectivity has