aboutsummaryrefslogtreecommitdiff
path: root/src/vdbetrace.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-04-22 23:38:50 +0000
committerdrh <drh@noemail.net>2013-04-22 23:38:50 +0000
commitda8caa0b2da85ebaf75fce1b19f5d645246f3eba (patch)
treef1dd367d6548b77e5664d8f491cf1bbaf3d666f1 /src/vdbetrace.c
parentd99aaf10df79c5cec4f8993f2936a476d3a265a9 (diff)
downloadsqlite-da8caa0b2da85ebaf75fce1b19f5d645246f3eba.tar.gz
sqlite-da8caa0b2da85ebaf75fce1b19f5d645246f3eba.zip
Fix harmless compiler warnings.
FossilOrigin-Name: 1a1cf5aa86734c832d845e07780262a178188d56
Diffstat (limited to 'src/vdbetrace.c')
-rw-r--r--src/vdbetrace.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/vdbetrace.c b/src/vdbetrace.c
index 91554d671..88935beea 100644
--- a/src/vdbetrace.c
+++ b/src/vdbetrace.c
@@ -128,7 +128,7 @@ char *sqlite3VdbeExpandSql(
}else if( pVar->flags & MEM_Real ){
sqlite3XPrintf(&out, "%!.15g", pVar->r);
}else if( pVar->flags & MEM_Str ){
- int n; /* Number of bytes of the string text to include in output */
+ int nOut; /* Number of bytes of the string text to include in output */
#ifndef SQLITE_OMIT_UTF16
u8 enc = ENC(db);
Mem utf8;
@@ -140,16 +140,16 @@ char *sqlite3VdbeExpandSql(
pVar = &utf8;
}
#endif
- n = pVar->n;
+ nOut = pVar->n;
#ifdef SQLITE_TRACE_SIZE_LIMIT
if( n>SQLITE_TRACE_SIZE_LIMIT ){
- n = SQLITE_TRACE_SIZE_LIMIT;
- while( n<pVar->n && (pVar->z[n]&0xc0)==0x80 ){ n++; }
+ nOut = SQLITE_TRACE_SIZE_LIMIT;
+ while( nOut<pVar->n && (pVar->z[n]&0xc0)==0x80 ){ n++; }
}
#endif
- sqlite3XPrintf(&out, "'%.*q'", n, pVar->z);
+ sqlite3XPrintf(&out, "'%.*q'", nOut, pVar->z);
#ifdef SQLITE_TRACE_SIZE_LIMIT
- if( n<pVar->n ) sqlite3XPrintf(&out, "/*+%d bytes*/", pVar->n-n);
+ if( nOut<pVar->n ) sqlite3XPrintf(&out, "/*+%d bytes*/", pVar->n-n);
#endif
#ifndef SQLITE_OMIT_UTF16
if( enc!=SQLITE_UTF8 ) sqlite3VdbeMemRelease(&utf8);
@@ -157,19 +157,19 @@ char *sqlite3VdbeExpandSql(
}else if( pVar->flags & MEM_Zero ){
sqlite3XPrintf(&out, "zeroblob(%d)", pVar->u.nZero);
}else{
- int n; /* Number of bytes of the blob to include in output */
+ int nOut; /* Number of bytes of the blob to include in output */
assert( pVar->flags & MEM_Blob );
sqlite3StrAccumAppend(&out, "x'", 2);
- n = pVar->n;
+ nOut = pVar->n;
#ifdef SQLITE_TRACE_SIZE_LIMIT
- if( n>SQLITE_TRACE_SIZE_LIMIT ) n = SQLITE_TRACE_SIZE_LIMIT;
+ if( nOut>SQLITE_TRACE_SIZE_LIMIT ) nOut = SQLITE_TRACE_SIZE_LIMIT;
#endif
- for(i=0; i<n; i++){
+ for(i=0; i<nOut; i++){
sqlite3XPrintf(&out, "%02x", pVar->z[i]&0xff);
}
sqlite3StrAccumAppend(&out, "'", 1);
#ifdef SQLITE_TRACE_SIZE_LIMIT
- if( n<pVar->n ) sqlite3XPrintf(&out, "/*+%d bytes*/", pVar->n-n);
+ if( nOut<pVar->n ) sqlite3XPrintf(&out, "/*+%d bytes*/", pVar->n-n);
#endif
}
}