diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-10-29 08:02:33 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-10-29 08:02:33 +0200 |
commit | 1e778a3b5624f97fdf44a15fd6cee3d615891cff (patch) | |
tree | 6d148ab587a259968fac6c38bb64746c4dd5c0da | |
parent | dee690292228ff240707826db9d4847e32981fad (diff) | |
download | mariadb-git-1e778a3b5624f97fdf44a15fd6cee3d615891cff.tar.gz |
MDEV-21201 fixup: GCC 10.2.0 -Wparentheses
An assertion inadvertently contained an assignment and an implicit
comparison to zero. The intention was to test equality.
-rw-r--r-- | sql/sql_show.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 6bd8c9b5c27..20e34269752 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -8688,7 +8688,8 @@ static int optimize_schema_tables_memory_usage(TABLE_LIST *table_list) { Field *field= table->field[i]; DBUG_ASSERT(field->vcol_info == 0); - DBUG_ASSERT(from_recinfo->length= field->pack_length_in_rec()); + DBUG_ASSERT(from_recinfo->length); + DBUG_ASSERT(from_recinfo->length == field->pack_length_in_rec()); if (bitmap_is_set(table->read_set, i)) { field->move_field(cur); |