Skip to content

Commit 0ec5bbf

Browse files
committed
Fixes build warning in prepared statement constructor
1 parent a99c63a commit 0ec5bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/PreparedStatementHostObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class PreparedStatementHostObject : public jsi::HostObject {
4040
jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propNameID) override;
4141

4242
private:
43-
std::shared_ptr<ThreadPool> _thread_pool;
4443
#ifdef OP_SQLITE_USE_LIBSQL
4544
DB _db;
4645
libsql_stmt_t _stmt;
@@ -49,6 +48,7 @@ class PreparedStatementHostObject : public jsi::HostObject {
4948
// This shouldn't be de-allocated until sqlite3_finalize is called on it
5049
sqlite3_stmt *_stmt;
5150
#endif
51+
std::shared_ptr<ThreadPool> _thread_pool;
5252
};
5353

5454
} // namespace opsqlite

0 commit comments

Comments
 (0)