From fa147843018ba14136c0a65a2cfcf53af2938958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 3 Apr 2019 19:21:54 +0300 Subject: [PATCH] Fix more -Wnonnull-compare For some reason, GCC 8 did not issue warnings for all such comparisons. --- storage/innobase/trx/trx0rec.cc | 1 - storage/xtradb/trx/trx0rec.cc | 1 - 2 files changed, 2 deletions(-) diff --git a/storage/innobase/trx/trx0rec.cc b/storage/innobase/trx/trx0rec.cc index c21b5d6772c..f70f8a61388 100644 --- a/storage/innobase/trx/trx0rec.cc +++ b/storage/innobase/trx/trx0rec.cc @@ -1087,7 +1087,6 @@ trx_undo_rec_get_partial_row( const byte* end_ptr; ulint row_len; - ut_ad(ptr); ut_ad(dict_index_is_clust(index)); row_len = dict_table_get_n_cols(index->table); diff --git a/storage/xtradb/trx/trx0rec.cc b/storage/xtradb/trx/trx0rec.cc index e4a8d1b2d82..351f65bb943 100644 --- a/storage/xtradb/trx/trx0rec.cc +++ b/storage/xtradb/trx/trx0rec.cc @@ -1087,7 +1087,6 @@ trx_undo_rec_get_partial_row( const byte* end_ptr; ulint row_len; - ut_ad(ptr); ut_ad(dict_index_is_clust(index)); row_len = dict_table_get_n_cols(index->table);