From 633eabc643fded0f7472b0f27ca4d035796acb2f Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Fri, 5 Dec 2008 19:13:08 +0100 Subject: [PATCH] compilation warnings --- client/mysqlslap.c | 2 +- storage/maria/trnman.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/mysqlslap.c b/client/mysqlslap.c index 67d518b7d5b..9904eeae9d0 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -1886,7 +1886,7 @@ limit_not_met: { if (mysql_field_count(mysql)) { - if (result= mysql_store_result(mysql)) + if ((result= mysql_store_result(mysql))) { while ((row = mysql_fetch_row(result))) counter++; diff --git a/storage/maria/trnman.c b/storage/maria/trnman.c index 50e77bfbd4a..3d177f98188 100644 --- a/storage/maria/trnman.c +++ b/storage/maria/trnman.c @@ -390,7 +390,7 @@ my_bool trnman_end_trn(TRN *trn, my_bool commit) TRN *free_me= 0; LF_PINS *pins= trn->pins; DBUG_ENTER("trnman_end_trn"); - DBUG_PRINT("enter", ("trn=0x%lx commit=%d", trn, commit)); + DBUG_PRINT("enter", ("trn=0x%lx commit=%d", (ulong) trn, commit)); DBUG_ASSERT(trn->rec_lsn == 0); /* if a rollback, all UNDO records should have been executed */