Fix -DNDEBUG support

Change-Id: Ib64cef83a646bce2b0afa72b607fb9e5c306e859
This commit is contained in:
2014-08-22 19:11:59 +02:00
parent 222afb38ac
commit 3260d16f34
20 changed files with 117 additions and 23 deletions

View File

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