diff options
author | drh <drh@noemail.net> | 2016-12-29 19:48:46 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-12-29 19:48:46 +0000 |
commit | 96ada59cbb25b37a73618016c8af6b39af005295 (patch) | |
tree | 8cec5fdcb6aa2cd2ae8bd9fefeb26a5f1d730ba7 /src/shell.c | |
parent | cae20d5cf1d324fc6d43cf4d0c60ca6331da4201 (diff) | |
download | sqlite-96ada59cbb25b37a73618016c8af6b39af005295.tar.gz sqlite-96ada59cbb25b37a73618016c8af6b39af005295.zip |
Fix harmless compiler warnings in the command-line shell and in Lemon.
FossilOrigin-Name: afcdc4a60e357d171156e0de705bf7ad1b37daab
Diffstat (limited to 'src/shell.c')
-rw-r--r-- | src/shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell.c b/src/shell.c index ae833d767..b0928ce79 100644 --- a/src/shell.c +++ b/src/shell.c @@ -3292,7 +3292,7 @@ static void shellFkeyCollateClause( const char *zParentSeq; const char *zChild; const char *zChildCol; - const char *zChildSeq; + const char *zChildSeq = 0; /* Initialize to avoid false-positive warning */ int rc; assert( nVal==4 ); @@ -3500,7 +3500,7 @@ static int lintDotCommand( int nArg /* Number of entries in azArg[] */ ){ int n; - n = (nArg>=2 ? strlen(azArg[1]) : 0); + n = (nArg>=2 ? (int)strlen(azArg[1]) : 0); if( n<1 || sqlite3_strnicmp(azArg[1], "fkey-indexes", n) ) goto usage; return lintFkeyIndexes(pState, azArg, nArg); |