aboutsummaryrefslogtreecommitdiff
path: root/tool/sqldiff.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-08-08 22:47:47 +0000
committerdrh <drh@noemail.net>2015-08-08 22:47:47 +0000
commit027616d4cea368f425ddb2af8bd7dabbb1b22147 (patch)
tree550e953bd85cc07e63c8443f022f466b20c62468 /tool/sqldiff.c
parentd50bd6b0aa38aacc95dbc3c0dab26e6b425f7580 (diff)
downloadsqlite-027616d4cea368f425ddb2af8bd7dabbb1b22147.tar.gz
sqlite-027616d4cea368f425ddb2af8bd7dabbb1b22147.zip
Fix compiler warnings and remove unreachable code.
FossilOrigin-Name: be190fe7826d157fc5acd84210095725b059e4f6
Diffstat (limited to 'tool/sqldiff.c')
-rw-r--r--tool/sqldiff.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/tool/sqldiff.c b/tool/sqldiff.c
index 82ef4ad15..3a5c4e4f7 100644
--- a/tool/sqldiff.c
+++ b/tool/sqldiff.c
@@ -845,36 +845,6 @@ static void putInt(unsigned int v, char **pz){
}
/*
-** Read bytes from *pz and convert them into a positive integer. When
-** finished, leave *pz pointing to the first character past the end of
-** the integer. The *pLen parameter holds the length of the string
-** in *pz and is decremented once for each character in the integer.
-*/
-static unsigned int getInt(const char **pz, int *pLen){
- static const signed char zValue[] = {
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1, -1, -1, -1, -1, -1,
- -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, 36,
- -1, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
- 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, -1, -1, 63, -1,
- };
- unsigned int v = 0;
- int c;
- unsigned char *z = (unsigned char*)*pz;
- unsigned char *zStart = z;
- while( (c = zValue[0x7f&*(z++)])>=0 ){
- v = (v<<6) + c;
- }
- z--;
- *pLen -= z - zStart;
- *pz = (char*)z;
- return v;
-}
-
-/*
** Return the number digits in the base-64 representation of a positive integer
*/
static int digit_count(int v){