aboutsummaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/lemon.c8
-rw-r--r--tool/mksqlite3c-noext.tcl1
-rw-r--r--tool/mksqlite3c.tcl1
-rw-r--r--tool/mksqlite3internalh.tcl1
4 files changed, 7 insertions, 4 deletions
diff --git a/tool/lemon.c b/tool/lemon.c
index 54c155204..4ada425d6 100644
--- a/tool/lemon.c
+++ b/tool/lemon.c
@@ -2442,7 +2442,7 @@ to follow the previous rule.");
if( x[0]=='{' || x[0]=='\"' || isalnum(x[0]) ){
const char *zOld, *zNew;
char *zBuf, *z;
- int nOld, n, nLine, nNew, nBack;
+ int nOld, n, nLine = 0, nNew, nBack;
int addLineMacro;
char zLine[50];
zNew = x;
@@ -2641,7 +2641,7 @@ void Parse(struct lemon *gp)
struct pstate ps;
FILE *fp;
char *filebuf;
- int filesize;
+ unsigned int filesize;
int lineno;
int c;
char *cp, *nextcp;
@@ -2775,7 +2775,7 @@ void Parse(struct lemon *gp)
c = *cp;
*cp = 0; /* Null terminate the token */
parseonetoken(&ps); /* Parse the token */
- *cp = c; /* Restore the buffer */
+ *cp = (char)c; /* Restore the buffer */
cp = nextcp;
}
free(filebuf); /* Release the buffer after parsing */
@@ -3398,7 +3398,7 @@ PRIVATE char *append_str(const char *zText, int n, int p1, int p2){
zText++;
n--;
}else{
- z[used++] = c;
+ z[used++] = (char)c;
}
}
z[used] = 0;
diff --git a/tool/mksqlite3c-noext.tcl b/tool/mksqlite3c-noext.tcl
index f54b347be..27522265b 100644
--- a/tool/mksqlite3c-noext.tcl
+++ b/tool/mksqlite3c-noext.tcl
@@ -96,6 +96,7 @@ foreach hdr {
hash.h
hwtime.h
keywordhash.h
+ msvc.h
mutex.h
opcodes.h
os_common.h
diff --git a/tool/mksqlite3c.tcl b/tool/mksqlite3c.tcl
index 72098c735..1d597a51a 100644
--- a/tool/mksqlite3c.tcl
+++ b/tool/mksqlite3c.tcl
@@ -100,6 +100,7 @@ foreach hdr {
hash.h
hwtime.h
keywordhash.h
+ msvc.h
mutex.h
opcodes.h
os_common.h
diff --git a/tool/mksqlite3internalh.tcl b/tool/mksqlite3internalh.tcl
index 7e92b3ad7..8db593fe7 100644
--- a/tool/mksqlite3internalh.tcl
+++ b/tool/mksqlite3internalh.tcl
@@ -58,6 +58,7 @@ foreach hdr {
hash.h
hwtime.h
keywordhash.h
+ msvc.h
opcodes.h
os_common.h
os_setup.h