1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-03 16:53:36 +03:00

Fix some compiler warnings. (CVS 2983)

FossilOrigin-Name: b7bdac0afd99b8dc03749877f675a5f782120295
This commit is contained in:
drh
2006-01-20 17:56:32 +00:00
parent 97a227c996
commit 24bd82c396
7 changed files with 21 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
C Fix\sanother\scouple\sof\sIO\sor\smalloc()\sfailure\sproblems\sin\sa\sshared-cache\scontext.\s(CVS\s2982) C Fix\ssome\scompiler\swarnings.\s(CVS\s2983)
D 2006-01-20T16:32:04 D 2006-01-20T17:56:33
F Makefile.in ab3ffd8d469cef4477257169b82810030a6bb967 F Makefile.in ab3ffd8d469cef4477257169b82810030a6bb967
F Makefile.linux-gcc aee18d8a05546dcf1888bd4547e442008a49a092 F Makefile.linux-gcc aee18d8a05546dcf1888bd4547e442008a49a092
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@@ -76,22 +76,22 @@ F src/tclsqlite.c d650bea0248fc0a310ddc2cb94273a3a5021fddf
F src/test1.c bcdd1978cb4f576611917948728acd09ede9c85d F src/test1.c bcdd1978cb4f576611917948728acd09ede9c85d
F src/test2.c ca74a1d8aeb7d9606e8f6b762c5daf85c1a3f92b F src/test2.c ca74a1d8aeb7d9606e8f6b762c5daf85c1a3f92b
F src/test3.c 86e99724ee898b119ed575ef9f98618afe7e5e5d F src/test3.c 86e99724ee898b119ed575ef9f98618afe7e5e5d
F src/test4.c 6633cb7b4a7429e938804a34f688d118c8b7f8e1 F src/test4.c ff4e9406b3d2809966d8f0e82468ac5508be9f56
F src/test5.c 7162f8526affb771c4ed256826eee7bb9eca265f F src/test5.c 7162f8526affb771c4ed256826eee7bb9eca265f
F src/test6.c 74d91b487c68154156eded457925d96aa2a3fdbb F src/test6.c 74d91b487c68154156eded457925d96aa2a3fdbb
F src/test7.c c87fd373a613986113717ba51e6a5ad86407c1f7 F src/test7.c d28d3e62f9594923648fc6a8fb030eba36564ba1
F src/test_async.c 6776f5027ca6378c116ff5ccc2fe41b908e33772 F src/test_async.c 6776f5027ca6378c116ff5ccc2fe41b908e33772
F src/tokenize.c 1ac078540c2074568e16c0e9beea836fb16b1adc F src/tokenize.c 9ae9a59238eb97fbc61baea280563b91100518fb
F src/trigger.c 4d3644cbd16959b568c95ae73493402be8021b08 F src/trigger.c 4d3644cbd16959b568c95ae73493402be8021b08
F src/update.c 14be4ba2f438919b4217085c02feff569e6cf1f2 F src/update.c 14be4ba2f438919b4217085c02feff569e6cf1f2
F src/utf.c 5ab8ca05d4e9ec81174b010f01ab12a232f0087d F src/utf.c 5ab8ca05d4e9ec81174b010f01ab12a232f0087d
F src/util.c 14f1f842caede231c8f72308c40d8e1f1cbec59e F src/util.c 2510e040166cb07b7e8ed0c1ccaec22350d57df4
F src/vacuum.c 3865673cc66acd0717ecd517f6b8fdb2a5e7924b F src/vacuum.c 3865673cc66acd0717ecd517f6b8fdb2a5e7924b
F src/vdbe.c 9eceb866b8197d25d07f700e16b1a50638d4bd6e F src/vdbe.c 9eceb866b8197d25d07f700e16b1a50638d4bd6e
F src/vdbe.h 8729a4ee16ff9aeab2af9667df3cf300ff978e13 F src/vdbe.h 8729a4ee16ff9aeab2af9667df3cf300ff978e13
F src/vdbeInt.h eb3f86ab08ef11635bc78eb88c3ff13f923c233b F src/vdbeInt.h eb3f86ab08ef11635bc78eb88c3ff13f923c233b
F src/vdbeapi.c 75eabedc09b3b2a6f2d256f85704b8b0cc0f50fa F src/vdbeapi.c 75eabedc09b3b2a6f2d256f85704b8b0cc0f50fa
F src/vdbeaux.c 9d92640082c632ab2a48fa0b1763390a78573607 F src/vdbeaux.c 1dce6e5f51d6119220e12ecbceccccf97ca8b8be
F src/vdbefifo.c 9efb94c8c3f4c979ebd0028219483f88e57584f5 F src/vdbefifo.c 9efb94c8c3f4c979ebd0028219483f88e57584f5
F src/vdbemem.c 2034e93b32c14bda6e306bb54e3a8e930b963027 F src/vdbemem.c 2034e93b32c14bda6e306bb54e3a8e930b963027
F src/where.c 5215507b232e718606e0014f999912d53de32a70 F src/where.c 5215507b232e718606e0014f999912d53de32a70
@@ -344,7 +344,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
F www/version3.tcl a99cf5f6d8bd4d5537584a2b342f0fb9fa601d8b F www/version3.tcl a99cf5f6d8bd4d5537584a2b342f0fb9fa601d8b
F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513 F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
P fd4a6bb1ac94d085dda247799c0a5c64aaeec046 P 7e34163a65a5842ecc50a14a9d60601e7c9d3249
R bde9ce22812627a378f8978bb7879372 R 77096438c8040f326e52cdb94c95952f
U danielk1977 U drh
Z c8dd5ea23e29760f9b39f58f5d5d0fb8 Z c5d01588a78484aeb8ca737258b22ec5

View File

@@ -1 +1 @@
7e34163a65a5842ecc50a14a9d60601e7c9d3249 b7bdac0afd99b8dc03749877f675a5f782120295

View File

@@ -11,7 +11,7 @@
************************************************************************* *************************************************************************
** Code for testing the the SQLite library in a multithreaded environment. ** Code for testing the the SQLite library in a multithreaded environment.
** **
** $Id: test4.c,v 1.15 2006/01/15 02:30:58 drh Exp $ ** $Id: test4.c,v 1.16 2006/01/20 17:56:33 drh Exp $
*/ */
#include "sqliteInt.h" #include "sqliteInt.h"
#include "tcl.h" #include "tcl.h"
@@ -496,7 +496,7 @@ static void do_step(Thread *p){
if( p->rc==SQLITE_ROW ){ if( p->rc==SQLITE_ROW ){
p->argc = sqlite3_column_count(p->pStmt); p->argc = sqlite3_column_count(p->pStmt);
for(i=0; i<sqlite3_data_count(p->pStmt); i++){ for(i=0; i<sqlite3_data_count(p->pStmt); i++){
p->argv[i] = sqlite3_column_text(p->pStmt, i); p->argv[i] = (char*)sqlite3_column_text(p->pStmt, i);
} }
for(i=0; i<p->argc; i++){ for(i=0; i<p->argc; i++){
p->colv[i] = sqlite3_column_name(p->pStmt, i); p->colv[i] = sqlite3_column_name(p->pStmt, i);

View File

@@ -12,7 +12,7 @@
** Code for testing the client/server version of the SQLite library. ** Code for testing the client/server version of the SQLite library.
** Derived from test4.c. ** Derived from test4.c.
** **
** $Id: test7.c,v 1.2 2006/01/11 23:40:34 drh Exp $ ** $Id: test7.c,v 1.3 2006/01/20 17:56:33 drh Exp $
*/ */
#include "sqliteInt.h" #include "sqliteInt.h"
#include "tcl.h" #include "tcl.h"
@@ -526,7 +526,7 @@ static void do_step(Thread *p){
if( p->rc==SQLITE_ROW ){ if( p->rc==SQLITE_ROW ){
p->argc = sqlite3_column_count(p->pStmt); p->argc = sqlite3_column_count(p->pStmt);
for(i=0; i<sqlite3_data_count(p->pStmt); i++){ for(i=0; i<sqlite3_data_count(p->pStmt); i++){
p->argv[i] = sqlite3_column_text(p->pStmt, i); p->argv[i] = (char*)sqlite3_column_text(p->pStmt, i);
} }
for(i=0; i<p->argc; i++){ for(i=0; i<p->argc; i++){
p->colv[i] = sqlite3_column_name(p->pStmt, i); p->colv[i] = sqlite3_column_name(p->pStmt, i);

View File

@@ -15,7 +15,7 @@
** individual tokens and sends those tokens one-by-one over to the ** individual tokens and sends those tokens one-by-one over to the
** parser for analysis. ** parser for analysis.
** **
** $Id: tokenize.c,v 1.115 2006/01/18 16:51:36 danielk1977 Exp $ ** $Id: tokenize.c,v 1.116 2006/01/20 17:56:33 drh Exp $
*/ */
#include "sqliteInt.h" #include "sqliteInt.h"
#include "os.h" #include "os.h"
@@ -339,7 +339,6 @@ int sqlite3RunParser(Parse *pParse, const char *zSql, char **pzErrMsg){
int tokenType; int tokenType;
int lastTokenParsed = -1; int lastTokenParsed = -1;
sqlite3 *db = pParse->db; sqlite3 *db = pParse->db;
ThreadData *pTsd = pParse->pTsd;
extern void *sqlite3ParserAlloc(void*(*)(int)); extern void *sqlite3ParserAlloc(void*(*)(int));
extern void sqlite3ParserFree(void*, void(*)(void*)); extern void sqlite3ParserFree(void*, void(*)(void*));
extern int sqlite3Parser(void*, int, Token, Parse*); extern int sqlite3Parser(void*, int, Token, Parse*);

View File

@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing ** This file contains functions for allocating memory, comparing
** strings, and stuff like that. ** strings, and stuff like that.
** **
** $Id: util.c,v 1.179 2006/01/19 07:18:14 danielk1977 Exp $ ** $Id: util.c,v 1.180 2006/01/20 17:56:33 drh Exp $
*/ */
#include "sqliteInt.h" #include "sqliteInt.h"
#include "os.h" #include "os.h"
@@ -566,7 +566,7 @@ void *sqlite3MallocRaw(int n){
** handleSoftLimit() above. This is so the ThreadData.nAlloc variable is ** handleSoftLimit() above. This is so the ThreadData.nAlloc variable is
** still correct after a malloc() failure. ** still correct after a malloc() failure.
*/ */
handleSoftLimit(n * -1); (void)handleSoftLimit(n * -1);
sqlite3FailedMalloc(); sqlite3FailedMalloc();
OSMALLOC_FAILED(); OSMALLOC_FAILED();
} }
@@ -596,7 +596,7 @@ void *sqlite3Realloc(void *p, int n){
** handleSoftLimit() above. This is so the ThreadData.nAlloc variable is ** handleSoftLimit() above. This is so the ThreadData.nAlloc variable is
** still correct after a malloc() failure. ** still correct after a malloc() failure.
*/ */
handleSoftLimit(OSSIZEOF(p) - n); (void)handleSoftLimit(OSSIZEOF(p) - n);
sqlite3FailedMalloc(); sqlite3FailedMalloc();
OSMALLOC_FAILED(); OSMALLOC_FAILED();
} }
@@ -610,7 +610,7 @@ void *sqlite3Realloc(void *p, int n){
** value returned by a previous call to sqlite3Malloc() or sqlite3Realloc(). ** value returned by a previous call to sqlite3Malloc() or sqlite3Realloc().
*/ */
void sqlite3FreeX(void *p){ void sqlite3FreeX(void *p){
handleSoftLimit(0 - OSSIZEOF(p)); (void)handleSoftLimit(0 - OSSIZEOF(p));
if( p ){ if( p ){
OSFREE(p); OSFREE(p);
} }

View File

@@ -1111,11 +1111,6 @@ static void abortOtherActiveVdbes(Vdbe *pVdbe){
} }
} }
static void rollbackAll(sqlite3 *db, Vdbe *pVdbe){
abortOtherActiveVdbes(pVdbe);
sqlite3RollbackAll(db);
}
/* /*
** This routine checks that the sqlite3.activeVdbeCnt count variable ** This routine checks that the sqlite3.activeVdbeCnt count variable
** matches the number of vdbe's in the list sqlite3.pVdbe that are ** matches the number of vdbe's in the list sqlite3.pVdbe that are