Fix -DNDEBUG support
Change-Id: Ib64cef83a646bce2b0afa72b607fb9e5c306e859
This commit is contained in:
@@ -110,7 +110,10 @@ struct utils::sqlite::database::impl {
|
||||
close(void)
|
||||
{
|
||||
PRE(db != NULL);
|
||||
int error = ::sqlite3_close(db);
|
||||
#if defined(__minix) && !defined(NDEBUG)
|
||||
int error =
|
||||
#endif /* defined(__minix) && !defined(NDEBUG) */
|
||||
::sqlite3_close(db);
|
||||
// For now, let's consider a return of SQLITE_BUSY an error. We should
|
||||
// not be trying to close a busy database in our code. Maybe revisit
|
||||
// this later to raise busy errors as exceptions.
|
||||
|
||||
Reference in New Issue
Block a user