sqlite: Fix build with DEBUG_LEVEL < 2
This commit is contained in:
@@ -62,7 +62,9 @@ METHOD(plugin_t, destroy, void,
|
||||
plugin_t *sqlite_plugin_create()
|
||||
{
|
||||
private_sqlite_plugin_t *this;
|
||||
#if SQLITE_VERSION_NUMBER >= 3005000 && DEBUG_LEVEL >= 2
|
||||
int threadsafe = 0;
|
||||
#endif
|
||||
|
||||
INIT(this,
|
||||
.public = {
|
||||
@@ -74,7 +76,7 @@ plugin_t *sqlite_plugin_create()
|
||||
},
|
||||
);
|
||||
|
||||
#if SQLITE_VERSION_NUMBER >= 3005000
|
||||
#if SQLITE_VERSION_NUMBER >= 3005000 && DEBUG_LEVEL >= 2
|
||||
threadsafe = sqlite3_threadsafe();
|
||||
#endif
|
||||
DBG2(DBG_LIB, "using SQLite %s, thread safety %d",
|
||||
|
||||
Reference in New Issue
Block a user