Skip to content

Commit

Permalink
MDEV-21201 fixup: GCC 10.2.0 -Wparentheses
Browse files Browse the repository at this point in the history
An assertion inadvertently contained an assignment and an implicit
comparison to zero. The intention was to test equality.
  • Loading branch information
dr-m committed Oct 29, 2020
1 parent dee6902 commit 1e778a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/sql_show.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e778a3

Please sign in to comment.