aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-08-20 23:28:18 +0000
committerdrh <drh@noemail.net>2015-08-20 23:28:18 +0000
commitc743579e59d310769f1e53e5217e58ae74b249cf (patch)
treefe697af35c415aeb2032568effab96ac7ebb4910 /src
parentd8b1bfc6bf2f9463c1dfc27e7c52e9207b291145 (diff)
downloadsqlite-c743579e59d310769f1e53e5217e58ae74b249cf.tar.gz
sqlite-c743579e59d310769f1e53e5217e58ae74b249cf.zip
Fix a couple C99-isms that cause compile errors on MSVC.
FossilOrigin-Name: bc577fe6cbbe5385d81d6fa0f3c34bb1c833f0d6
Diffstat (limited to 'src')
-rw-r--r--src/build.c2
-rw-r--r--src/resolve.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/build.c b/src/build.c
index d6ceb2c88..e45908dc3 100644
--- a/src/build.c
+++ b/src/build.c
@@ -355,6 +355,7 @@ Table *sqlite3LocateTable(
p = sqlite3FindTable(pParse->db, zName, zDbase);
if( p==0 ){
+ const char *zMsg = isView ? "no such view" : "no such table";
#ifndef SQLITE_OMIT_VIRTUAL_TABLE
/* If zName is the not the name of a table in the schema created using
** CREATE, then check to see if it is the name of an virtual table that
@@ -364,7 +365,6 @@ Table *sqlite3LocateTable(
return pMod->pEpoTab;
}
#endif
- const char *zMsg = isView ? "no such view" : "no such table";
if( zDbase ){
sqlite3ErrorMsg(pParse, "%s: %s.%s", zMsg, zDbase, zName);
}else{
diff --git a/src/resolve.c b/src/resolve.c
index 0908d4cd5..c859e886a 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -1451,8 +1451,8 @@ int sqlite3ResolveExprListNames(
NameContext *pNC, /* Namespace to resolve expressions in. */
ExprList *pList /* The expression list to be analyzed. */
){
- assert( pList!=0 );
int i;
+ assert( pList!=0 );
for(i=0; i<pList->nExpr; i++){
if( sqlite3ResolveExprNames(pNC, pList->a[i].pExpr) ) return WRC_Abort;
}