From d0d7e1351192300b90b3ada5ea10c6fb596c8796 Mon Sep 17 00:00:00 2001 From: drh Date: Fri, 30 Dec 2016 12:10:48 +0000 Subject: [PATCH] Fix a harmless compiler warning in fuzzcheck.c FossilOrigin-Name: 2842bc60538369f888c7df8365858c910322277d --- manifest | 12 ++++++------ manifest.uuid | 2 +- test/fuzzcheck.c | 3 --- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/manifest b/manifest index 9133bf9181..a98844efba 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Disable\sthe\spagerAcquireMapPage()\sroutine\sif\smemory-mapped\sI/O\sis\sdisabled.\nThis\sfixes\sa\sharmless\scompiler\swarning\son\sOpenBSD. -D 2016-12-30T12:06:22.488 +C Fix\sa\sharmless\scompiler\swarning\sin\sfuzzcheck.c +D 2016-12-30T12:10:48.960 F Makefile.in 41bd4cad981487345c4a84081074bcdb876e4b2e F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc b8ca53350ae545e3562403d5da2a69cec79308da @@ -816,7 +816,7 @@ F test/fuzz2.test 76dc35b32b6d6f965259508508abce75a6c4d7e1 F test/fuzz3.test b47377143f0c80f91ed29d722861077ff34415d5 F test/fuzz_common.tcl a87dfbb88c2a6b08a38e9a070dabd129e617b45b F test/fuzz_malloc.test 328f70aaca63adf29b4c6f06505ed0cf57ca7c26 -F test/fuzzcheck.c 9c29eae3536beaf1a816e81d106208c304e50b0a +F test/fuzzcheck.c a87e6067a8d19844bade916841cb76150ecf24a2 F test/fuzzdata1.db 7ee3227bad0e7ccdeb08a9e6822916777073c664 F test/fuzzdata2.db f03a420d3b822cc82e4f894ca957618fbe9c4973 F test/fuzzdata3.db c6586d3e3cef0fbc18108f9bb649aa77bfc38aba @@ -1540,7 +1540,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 -P f57952bac652901e1bd48b68301941efbcf29dc4 -R 84982edb372ca58cbe65b01953728d25 +P 3e25ba6e42fba239795a465b8510386a361ee5be +R cb43d33d19adf32bebd1dfaa0e0b456a U drh -Z cbb966aa1c32407e62c70cc77619dbe0 +Z 067d360edde333b631fbf0df03bf7c2e diff --git a/manifest.uuid b/manifest.uuid index 6d837edae3..6755f6c671 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -3e25ba6e42fba239795a465b8510386a361ee5be \ No newline at end of file +2842bc60538369f888c7df8365858c910322277d \ No newline at end of file diff --git a/test/fuzzcheck.c b/test/fuzzcheck.c index 2182f03d09..75d519566f 100644 --- a/test/fuzzcheck.c +++ b/test/fuzzcheck.c @@ -70,7 +70,6 @@ #include #include #include "sqlite3.h" -#include #define ISSPACE(X) isspace((unsigned char)(X)) #define ISDIGIT(X) isdigit((unsigned char)(X)) @@ -636,14 +635,12 @@ static void inmemVfsRegister(int makeDefault){ */ static void runSql(sqlite3 *db, const char *zSql, unsigned runFlags){ const char *zMore; - const char *zEnd = &zSql[strlen(zSql)]; sqlite3_stmt *pStmt; while( zSql && zSql[0] ){ zMore = 0; pStmt = 0; sqlite3_prepare_v2(db, zSql, -1, &pStmt, &zMore); - assert( zMore<=zEnd ); if( zMore==zSql ) break; if( runFlags & SQL_TRACE ){ const char *z = zSql;