[Python-checkins] gh-89289: Fix compiler warning in _sqlite/connection.c (#92258)
vstinner
webhook-mailer at python.org
Tue May 3 16:22:13 EDT 2022
https://github.com/python/cpython/commit/d9ec55319422cf2ba8495b2b7859749d3d742291
commit: d9ec55319422cf2ba8495b2b7859749d3d742291
branch: main
author: Erlend Egeberg Aasland <erlend.aasland at protonmail.com>
committer: vstinner <vstinner at python.org>
date: 2022-05-03T22:21:56+02:00
summary:
gh-89289: Fix compiler warning in _sqlite/connection.c (#92258)
files:
M Modules/_sqlite/connection.c
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index 793bc0b6aef0d..333847f0fafb9 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -289,7 +289,7 @@ pysqlite_connection_init_impl(pysqlite_Connection *self,
// There are no statements or other SQLite objects attached to the
// database, so sqlite3_close() should always return SQLITE_OK.
rc = sqlite3_close(db);
- assert(rc == SQLITE_OK), rc;
+ assert(rc == SQLITE_OK);
return -1;
}
More information about the Python-checkins
mailing list