aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-01-03 23:54:18 +0000
committerdrh <drh@noemail.net>2018-01-03 23:54:18 +0000
commite616735cb190447097b83af23734dafd9fcda548 (patch)
tree9e939df2d3f5b8f680b900289d59aedc6c6af923 /src
parenta5bb43518b406098d4545c98fcffc80724c9f1fc (diff)
downloadsqlite-e616735cb190447097b83af23734dafd9fcda548.tar.gz
sqlite-e616735cb190447097b83af23734dafd9fcda548.zip
Fix compiler warnings on Windows.
FossilOrigin-Name: 512b8e40c4ce2066d230b5f007bd704dc3577e21c55131ef07d90bf2fcf91b40
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in2
-rw-r--r--src/sqliteInt.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index 4c9e60769..1421ab419 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -4272,7 +4272,7 @@ static int expertDotCommand(
char *z = azArg[i];
int n;
if( z[0]=='-' && z[1]=='-' ) z++;
- n = strlen(z);
+ n = strlen30(z);
if( n>=2 && 0==strncmp(z, "-verbose", n) ){
pState->expert.bVerbose = 1;
}
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 35074ee81..757cfcb99 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1365,9 +1365,9 @@ struct sqlite3 {
int newTnum; /* Rootpage of table being initialized */
u8 iDb; /* Which db file is being initialized */
u8 busy; /* TRUE if currently initializing */
- u8 orphanTrigger : 1; /* Last statement is orphaned TEMP trigger */
- u8 imposterTable : 1; /* Building an imposter table */
- u8 reopenMemdb : 1; /* ATTACH is really a reopen using MemDB */
+ unsigned orphanTrigger : 1; /* Last statement is orphaned TEMP trigger */
+ unsigned imposterTable : 1; /* Building an imposter table */
+ unsigned reopenMemdb : 1; /* ATTACH is really a reopen using MemDB */
} init;
int nVdbeActive; /* Number of VDBEs currently running */
int nVdbeRead; /* Number of active VDBEs that read or write */