Get rid of the following compile-time warnings:

tool/mkkeywordhash.c:353: warning: array subscript has type 'char'
tool/mkkeywordhash.c:354: warning: array subscript has type 'char' (CVS 4189)

FossilOrigin-Name: c01d7944799d8a96a29f8d4f6d2bb7c4bb0e14bb
This commit is contained in:
rse 2007-07-30 18:26:19 +00:00
parent be0a909683
commit 43e47c8ec1
3 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
C Get\srid\sof\sthe\sfollowing\scompile-time\swarning:\n"src/shell.c:112:\swarning:\s'iotracePrintf'\sdefined\sbut\snot\sused"\s(CVS\s4188)
D 2007-07-30T18:24:39
C Get\srid\sof\sthe\sfollowing\scompile-time\swarnings:\ntool/mkkeywordhash.c:353:\swarning:\sarray\ssubscript\shas\stype\s'char'\ntool/mkkeywordhash.c:354:\swarning:\sarray\ssubscript\shas\stype\s'char'\s(CVS\s4189)
D 2007-07-30T18:26:20
F Makefile.in 0c0e53720f658c7a551046442dd7afba0b72bfbe
F Makefile.linux-gcc 65241babba6faf1152bf86574477baab19190499
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@ -452,7 +452,7 @@ F tool/lempar.c 8f998bf8d08e2123149c2cc5d0597cd5d5d1abdd
F tool/memleak.awk 4e7690a51bf3ed757e611273d43fe3f65b510133
F tool/memleak2.awk 9cc20c8e8f3c675efac71ea0721ee6874a1566e8
F tool/memleak3.tcl 7707006ee908cffff210c98158788d85bb3fcdbf
F tool/mkkeywordhash.c fe15d1cbc61c2b0375634b6d8c1ef24520799ea0
F tool/mkkeywordhash.c ef93810fc41fb3d3dbacf9a33a29be88ea99ffa9
F tool/mkopts.tcl 66ac10d240cc6e86abd37dc908d50382f84ff46e x
F tool/mksqlite3c.tcl 5d8ed832629acd4f75d088dd0c647dc12c48b1b0
F tool/mksqlite3internalh.tcl 47737a925fb02fce43e2c0a14b3cc17574a4d44a
@ -523,7 +523,7 @@ F www/tclsqlite.tcl 8be95ee6dba05eabcd27a9d91331c803f2ce2130
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
P 7b69968618bfc19f0c1ab25c5f16c9fdff5af094
R fee8592a6fe77d02742d379c188964b0
P 271e27fd30f3b99e6d6ad2fc2c6e87f43f4c76c8
R 1509f336d338fc94f34e5717001264d7
U rse
Z cc360687d10b52289112f10a8a70cbae
Z b912cbdd22550009e6c0f9bc44ef885c

View File

@ -1 +1 @@
271e27fd30f3b99e6d6ad2fc2c6e87f43f4c76c8
c01d7944799d8a96a29f8d4f6d2bb7c4bb0e14bb

View File

@ -15,7 +15,7 @@ static const char zHdr[] =
"**\n"
"** The code in this file has been automatically generated by\n"
"**\n"
"** $Header: /home/drh/sqlite/trans/cvs/sqlite/sqlite/tool/mkkeywordhash.c,v 1.30 2007/05/04 18:30:41 drh Exp $\n"
"** $Header: /home/drh/sqlite/trans/cvs/sqlite/sqlite/tool/mkkeywordhash.c,v 1.31 2007/07/30 18:26:20 rse Exp $\n"
"**\n"
"** The code in this file implements a function that determines whether\n"
"** or not a given identifier is really an SQL keyword. The same thing\n"
@ -350,8 +350,8 @@ int main(int argc, char **argv){
Keyword *p = &aKeywordTable[i];
p->len = strlen(p->zName);
totalLen += p->len;
p->hash = (UpperToLower[p->zName[0]]*4) ^
(UpperToLower[p->zName[p->len-1]]*3) ^ p->len;
p->hash = (UpperToLower[(int)p->zName[0]]*4) ^
(UpperToLower[(int)p->zName[p->len-1]]*3) ^ p->len;
p->id = i+1;
}