Fix harmless compiler warnings in tool/src-verify.c

FossilOrigin-Name: 0e79ee97b18792dba9213bd9961f53e2bae765ac92df7963703d08857da74fd1
This commit is contained in:
drh 2023-06-04 22:59:20 +00:00
parent 10ca116b3e
commit 979715bb45
3 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
C Enhancement\sto\stool/src-verify.c\sto\salso\scheck\sthe\smanifest.uuid\sfile.
D 2023-06-04T22:56:31.633
C Fix\sharmless\scompiler\swarnings\sin\stool/src-verify.c
D 2023-06-04T22:59:20.911
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@ -2040,7 +2040,7 @@ F tool/sqldiff.c 2a693b4e7c1818c23f871f82f0c3fe67d80b67e3f087893089d33da29c1e387
F tool/sqlite3_analyzer.c.in f88615bf33098945e0a42f17733f472083d150b58bdaaa5555a7129d0a51621c
F tool/sqltclsh.c.in 1bcc2e9da58fadf17b0bf6a50e68c1159e602ce057210b655d50bad5aaaef898
F tool/sqltclsh.tcl 862f4cf1418df5e1315b5db3b5ebe88969e2a784525af5fbf9596592f14ed848
F tool/src-verify.c e5e9dc2ed69c758d8e0b81f5ec0aaadd9fbd823aa32b250364e093c3d11edef4
F tool/src-verify.c efdc92df3139dedeba0b1875d39760e477259949dbdb2ef44ce2524a94dc51b6
F tool/srcck1.c 371de5363b70154012955544f86fdee8f6e5326f
F tool/stack_usage.tcl f8e71b92cdb099a147dad572375595eae55eca43
F tool/stripccomments.c 20b8aabc4694d0d4af5566e42da1f1a03aff057689370326e9269a9ddcffdc37
@ -2073,8 +2073,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
P ed876ff6a1a6a2d555f32b96eb78d95eaf8428ee189f968c43f0829a3065bfa7
R 9b0a2b61006df3d756be5515b62f26fb
P a39a569482a35610fdaa2fdfc88491d8b456dfedb4786c817e0502eb3e3a5563
R 3671d9fac26b0bc0780fa18afc9f1b61
U drh
Z 003c541e1b3df30b4cc522e965c30af6
Z b203035d269d741595c045eda7cfe5e7
# Remove this line to create a well-formed Fossil manifest.

View File

@ -1 +1 @@
a39a569482a35610fdaa2fdfc88491d8b456dfedb4786c817e0502eb3e3a5563
0e79ee97b18792dba9213bd9961f53e2bae765ac92df7963703d08857da74fd1

View File

@ -684,7 +684,7 @@ void sha3sum_file(const char *zFilename, char *zCksum){
}
SHA3Init(&ctx, 256);
for(;;){
int n;
size_t n;
n = fread(zBuf, 1, sizeof(zBuf), in);
if( n<=0 ) break;
SHA3Update(&ctx, (unsigned char*)zBuf, (unsigned)n);
@ -712,7 +712,7 @@ void sha1sum_file(const char *zFilename, char *zCksum){
}
SHA1Init(&ctx);
for(;;){
int n;
size_t n;
n = fread(zBuf, 1, sizeof(zBuf), in);
if( n<=0 ) break;
SHA1Update(&ctx, (unsigned char*)zBuf, (unsigned)n);
@ -803,7 +803,7 @@ int main(int argc, char **argv){
SHA3Init(&ctx3, 256);
while( fgets(zLine, sizeof(zLine), in) ){
if( zLine[0]=='#' ) break;
SHA3Update(&ctx3, (unsigned char*)zLine, strlen(zLine));
SHA3Update(&ctx3, (unsigned char*)zLine, (int)strlen(zLine));
}
DigestToBase16(SHA3Final(&ctx3), zVers, 32);