diff options
author | Michael Widenius <monty@mariadb.org> | 2018-04-11 02:20:22 +0300 |
---|---|---|
committer | Michael Widenius <monty@mariadb.org> | 2018-04-16 20:16:43 +0300 |
commit | ddc5764303dd72f68d2c69cc574a6f42e8bcf86d (patch) | |
tree | ce22119346b027d359a909f7e272330dabd4c19b /sql/item_sum.cc | |
parent | dbbe70e1cfe9d7635d9dba774a2c9dc61163b542 (diff) | |
download | mariadb-git-ddc5764303dd72f68d2c69cc574a6f42e8bcf86d.tar.gz |
Remove compiler warnings
- Remove unused variables
- Mark variables unused
- Fix wrong types
- Add no-strict-aliasing to BUILD scripts
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 2ec7e3c338f..2d47aeb179d 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -2456,7 +2456,7 @@ Item *Item_sum_max::copy_or_same(THD* thd) bool Item_sum_max::add() { - Item *tmp_item; + Item * UNINIT_VAR(tmp_item); DBUG_ENTER("Item_sum_max::add"); DBUG_PRINT("enter", ("this: %p", this)); @@ -2661,7 +2661,7 @@ void Item_sum_num::reset_field() void Item_sum_hybrid::reset_field() { - Item *tmp_item, *arg0; + Item *UNINIT_VAR(tmp_item), *arg0; DBUG_ENTER("Item_sum_hybrid::reset_field"); arg0= args[0]; @@ -3018,7 +3018,7 @@ Item *Item_sum_avg::result_item(THD *thd, Field *field) void Item_sum_hybrid::update_field() { DBUG_ENTER("Item_sum_hybrid::update_field"); - Item *tmp_item; + Item *UNINIT_VAR(tmp_item); if (unlikely(direct_added)) { tmp_item= args[0]; |