summaryrefslogtreecommitdiff
path: root/sql/tztime.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-02-10 14:05:49 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-03-16 14:48:22 +0400
commit18e9c314e43271debf58f3c3e5bf454eab655799 (patch)
treecd2ff9ea71622f048b609873f4024eabfa965d3d /sql/tztime.cc
parent10554ca6cbb6a02098b0cc1a55fb5426164ef348 (diff)
downloadmariadb-git-18e9c314e43271debf58f3c3e5bf454eab655799.tar.gz
MDEV-6650 - LINT_INIT emits code in non-debug builds
Replaced all references to LINT_INIT with UNINIT_VAR and LINT_INIT_STRUCT. Removed LINT_INIT macro.
Diffstat (limited to 'sql/tztime.cc')
-rw-r--r--sql/tztime.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/tztime.cc b/sql/tztime.cc
index 1cb1f5a0d5c..9fa065eefa0 100644
--- a/sql/tztime.cc
+++ b/sql/tztime.cc
@@ -327,7 +327,7 @@ static my_bool
prepare_tz_info(TIME_ZONE_INFO *sp, MEM_ROOT *storage)
{
my_time_t cur_t= MY_TIME_T_MIN;
- my_time_t cur_l, end_t, end_l;
+ my_time_t cur_l, end_t, UNINIT_VAR(end_l);
my_time_t cur_max_seen_l= MY_TIME_T_MIN;
long cur_offset, cur_corr, cur_off_and_corr;
uint next_trans_idx, next_leap_idx;
@@ -340,8 +340,6 @@ prepare_tz_info(TIME_ZONE_INFO *sp, MEM_ROOT *storage)
my_time_t revts[TZ_MAX_REV_RANGES];
REVT_INFO revtis[TZ_MAX_REV_RANGES];
- LINT_INIT(end_l);
-
/*
Let us setup fallback time type which will be used if we have not any
transitions or if we have moment of time before first transition.