Skip to content
This repository was archived by the owner on Sep 2, 2019. It is now read-only.

Commit b75b215

Browse files
committed
fixed build errors, warnings and made a bit more robust
1 parent 560950e commit b75b215

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

premake4.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ solution "SQLite3"
112112
}
113113
defines {
114114
"_WINDOWS",
115-
"SQLITE_THREADSAFE=2", -- http://www.sqlite.org/compile.html#threadsafe
115+
"SQLITE_THREADSAFE=1", -- http://www.sqlite.org/compile.html#threadsafe
116116
"SQLITE_DEFAULT_PAGE_SIZE=4096", -- better performance
117117
"SQLITE_TEMP_STORE=2", -- http://www.sqlite.org/tempfiles.html#tempstore
118118
"SQLITE_DEFAULT_TEMP_CACHE_SIZE=1024", -- http://www.sqlite.org/tempfiles.html#otheropt
@@ -231,6 +231,6 @@ solution "SQLite3"
231231
}
232232
links { PRJ_NAME_LIB }
233233
defines {
234-
"SQLITE_THREADSAFE=0", -- CLI is always single threaded, generates warnings because of a collision with previous definitions
234+
-- "SQLITE_THREADSAFE=0", -- CLI is always single threaded, generates warnings because of a collision with previous definitions
235235
"SQLITE_ENABLE_EXPLAIN_COMMENTS"
236236
}

src/sqlite3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136983,7 +136983,7 @@ SQLITE_PRIVATE int sqlite3Fts3EvalPhrasePoslist(
136983136983
if( iDocid!=pCsr->iPrevId || pExpr->bEof ){
136984136984
int rc = SQLITE_OK;
136985136985
int bDescDoclist = pTab->bDescIdx; /* For DOCID_CMP macro */
136986-
int iMul; /* +1 if csr dir matches index dir, else -1 */
136986+
/* int iMul; /* +1 if csr dir matches index dir, else -1 */
136987136987
int bOr = 0;
136988136988
u8 bEof = 0;
136989136989
u8 bTreeEof = 0;

src/sqlite3secure.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// Enable the user authentication feature
99
#ifndef SQLITE_USER_AUTHENTICATION
10-
#define SQLITE_USER_AUTHENTICATION
10+
#define SQLITE_USER_AUTHENTICATION 1
1111
#endif
1212

1313
#include "sqlite3.c"

0 commit comments

Comments
 (0)