From 366a694cc6bea00980d09f36ff8041f762a809b0 Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Thu, 25 May 2017 13:20:40 +0200 Subject: [PATCH] silence some warnings --- dbdimp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbdimp.c b/dbdimp.c index c35e1f0..e95c117 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -642,7 +642,7 @@ sqlite_db_disconnect(SV *dbh, imp_dbh_t *imp_dbh) sqlite_trace( dbh, imp_dbh, 1, form("rc = %d", rc) ); if ( SQLITE_BUSY == rc ) { /* We have unfinalized statements */ /* Only close the statements that were prepared by this module */ - while ( s = imp_dbh->stmt_list ) { + while ( (s = imp_dbh->stmt_list) ) { sqlite_trace( dbh, imp_dbh, 1, form("Finalizing statement (%p)", s->stmt) ); sqlite3_finalize( s->stmt ); imp_dbh->stmt_list = s->prev; @@ -657,7 +657,7 @@ sqlite_db_disconnect(SV *dbh, imp_dbh_t *imp_dbh) } /* The list should be empty at this point, but if for some unforseen reason it isn't, free remaining nodes here */ - while( s = imp_dbh->stmt_list ) { + while( (s = imp_dbh->stmt_list) ) { imp_dbh->stmt_list = s->prev; sqlite3_free( s ); } @@ -871,7 +871,7 @@ sqlite_st_prepare_sv(SV *sth, imp_sth_t *imp_sth, SV *sv_statement, SV *attribs) } return FALSE; /* -> undef in lib/DBD/SQLite.pm */ } - if (&extra && imp_dbh->allow_multiple_statements) { + if (imp_dbh->allow_multiple_statements) { imp_sth->unprepared_statements = savepv(extra); } else {