cppcheck harmless warnings

MDEV-13953 mariadb-10.2.9/storage/innobase/row/row0import.cc:3602: possible cut'n'paste error ?
MDEV-13955 mariadb-10.2.9/sql/log_event.cc:7671: possible wrong operator ?
This commit is contained in:
Sergei Golubchik 2017-09-29 10:51:00 +02:00
parent ebda6e958f
commit a62ebf2590
2 changed files with 1 additions and 5 deletions

View File

@ -7668,7 +7668,7 @@ Gtid_log_event::print(FILE *file, PRINT_EVENT_INFO *print_event_info)
char buf[21];
char buf2[21];
if (!print_event_info->short_form & !is_flashback)
if (!print_event_info->short_form && !is_flashback)
{
print_header(&cache, print_event_info, FALSE);
longlong10_to_str(seq_no, buf, 10);

View File

@ -3595,10 +3595,6 @@ row_import_for_mysql(
DBUG_EXECUTE_IF("ib_import_cluster_root_adjust_failure",
err = DB_CORRUPTION;);
if (err != DB_SUCCESS) {
return(row_import_error(prebuilt, trx, err));
}
if (err != DB_SUCCESS) {
return(row_import_error(prebuilt, trx, err));
} else if (cfg.requires_purge(index->name)) {