1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

silence some warnings

This commit is contained in:
Jacques Germishuys 2017-05-25 13:20:40 +02:00
parent 63e824c1b3
commit 366a694cc6

View file

@ -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 {