From c0fca2863bcbd7cd231f1aa747b4f8d999e3a00e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 3 Apr 2019 09:46:49 +0300 Subject: Fix -Wnonnull-compare InnoDB and XtraDB had redundant assertions for checking that function parameters that were declared as nonnull were not NULL. --- storage/innobase/row/row0purge.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'storage/innobase/row/row0purge.cc') diff --git a/storage/innobase/row/row0purge.cc b/storage/innobase/row/row0purge.cc index 98504b1e973..4cc3a71a5fa 100644 --- a/storage/innobase/row/row0purge.cc +++ b/storage/innobase/row/row0purge.cc @@ -1,7 +1,7 @@ /***************************************************************************** Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved. -Copyright (c) 2017, 2018, MariaDB Corporation. +Copyright (c) 2017, 2019, MariaDB Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -968,8 +968,6 @@ row_purge_step( { purge_node_t* node; - ut_ad(thr); - node = static_cast(thr->run_node); node->table = NULL; -- cgit v1.2.1