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

Remove an unused parameter from sqlite3DequoteExpr. Fix another unrelated

and harmless compiler warning. (CVS 6386)

FossilOrigin-Name: 8589b0fcc51a32188386e442655fd91f421ca7f8
This commit is contained in:
drh
2009-03-25 16:51:43 +00:00
parent 357864ecb6
commit 7c01f1d754
8 changed files with 29 additions and 31 deletions

View File

@@ -13,7 +13,7 @@
** This file contains the implementation of the sqlite3_unlock_notify()
** API method and its associated functionality.
**
** $Id: notify.c,v 1.1 2009/03/16 13:19:36 danielk1977 Exp $
** $Id: notify.c,v 1.2 2009/03/25 16:51:43 drh Exp $
*/
#include "sqliteInt.h"
#include "btreeInt.h"
@@ -230,9 +230,9 @@ void sqlite3ConnectionUnlocked(sqlite3 *db){
sqlite3BeginBenignMalloc();
assert( aArg==aDyn || (aDyn==0 && aArg==aStatic) );
assert( nArg<=ArraySize(aStatic) || aArg==aDyn );
if( (!aDyn && nArg==ArraySize(aStatic))
|| (aDyn && nArg==(sqlite3DbMallocSize(db, aDyn)/sizeof(void*)))
assert( nArg<=(int)ArraySize(aStatic) || aArg==aDyn );
if( (!aDyn && nArg==(int)ArraySize(aStatic))
|| (aDyn && nArg==(int)(sqlite3DbMallocSize(db, aDyn)/sizeof(void*)))
){
/* The aArg[] array needs to grow. */
void **pNew = (void **)sqlite3Malloc(nArg*sizeof(void *)*2);
@@ -307,4 +307,3 @@ void sqlite3ConnectionClosed(sqlite3 *db){
leaveMutex();
}
#endif