1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Changes to avoid "unused parameter" compiler warnings. (CVS 5921)

FossilOrigin-Name: 88134322c36b41304aaeef99c39b4ef5b495ca3b
This commit is contained in:
danielk1977
2008-11-19 09:05:26 +00:00
parent b232c23297
commit 62c14b3487
23 changed files with 142 additions and 106 deletions

View File

@@ -11,7 +11,7 @@
*************************************************************************
** This file contains code used to implement the ATTACH and DETACH commands.
**
** $Id: attach.c,v 1.79 2008/10/28 17:52:39 danielk1977 Exp $
** $Id: attach.c,v 1.80 2008/11/19 09:05:27 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -64,7 +64,7 @@ static int resolveAttachExpr(NameContext *pName, Expr *pExpr)
*/
static void attachFunc(
sqlite3_context *context,
int argc,
int NotUsed,
sqlite3_value **argv
){
int i;
@@ -76,6 +76,8 @@ static void attachFunc(
char *zErrDyn = 0;
char zErr[128];
UNUSED_PARAMETER(NotUsed);
zFile = (const char *)sqlite3_value_text(argv[0]);
zName = (const char *)sqlite3_value_text(argv[1]);
if( zFile==0 ) zFile = "";
@@ -232,7 +234,7 @@ attach_error:
*/
static void detachFunc(
sqlite3_context *context,
int argc,
int NotUsed,
sqlite3_value **argv
){
const char *zName = (const char *)sqlite3_value_text(argv[0]);
@@ -241,6 +243,8 @@ static void detachFunc(
Db *pDb = 0;
char zErr[128];
UNUSED_PARAMETER(NotUsed);
if( zName==0 ) zName = "";
for(i=0; i<db->nDb; i++){
pDb = &db->aDb[i];