diff options
author | monty@mysql.com <> | 2004-11-09 14:46:26 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2004-11-09 14:46:26 +0200 |
commit | d45bbae2de60d92a98e1696f8dc54b5c74915e3b (patch) | |
tree | 7353b3578d106709f49384760c799c976a03a1c6 /sql/item_timefunc.cc | |
parent | 6c44563fc5c248fdab9d5818fd19138bb104fcb4 (diff) | |
download | mariadb-git-d45bbae2de60d92a98e1696f8dc54b5c74915e3b.tar.gz |
Fix for valgrind/purify for variables that the compiler touches but that doesn't affect the outcome of the tests
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 41418c0094d..d8142352e70 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -161,21 +161,24 @@ static bool extract_date_time(DATE_TIME_FORMAT *format, { int weekday= 0, yearday= 0, daypart= 0; int week_number= -1; - CHARSET_INFO *cs= &my_charset_bin; int error= 0; - bool usa_time= 0; - bool sunday_first_n_first_week_non_iso= -2; - bool strict_week_number; int strict_week_number_year= -1; - bool strict_week_number_year_type= -1; int frac_part; + bool usa_time= 0; + bool sunday_first_n_first_week_non_iso; + bool strict_week_number; + bool strict_week_number_year_type; const char *val_begin= val; const char *val_end= val + length; const char *ptr= format->format.str; const char *end= ptr + format->format.length; + CHARSET_INFO *cs= &my_charset_bin; DBUG_ENTER("extract_date_time"); LINT_INIT(strict_week_number); + /* Remove valgrind varnings when using gcc 3.3 and -O1 */ + PURIFY_OR_LINT_INIT(strict_week_number_year_type); + PURIFY_OR_LINT_INIT(sunday_first_n_first_week_non_iso); if (!sub_pattern_end) bzero((char*) l_time, sizeof(*l_time)); |