Skip to content

Commit

Permalink
More compiler warning fixes for GCC related to the auto-extension mec…
Browse files Browse the repository at this point in the history
…hanism.
  • Loading branch information
Joe Mistachkin committed Jul 28, 2016
1 parent 02eb074 commit bfd669b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/tclsqlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -3923,7 +3923,7 @@ static void md5finalize(sqlite3_context *context){
int Md5_Register(
sqlite3 *db,
char **pzErrMsg,
const void *pThunk
const sqlite3_api_routines *pThunk
){
int rc = sqlite3_create_function(db, "md5sum", -1, SQLITE_UTF8, 0, 0,
md5step, md5finalize);
Expand Down
6 changes: 3 additions & 3 deletions src/test_func.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ static void test_setsubtype(
static int registerTestFunctions(
sqlite3 *db,
char **pzErrMsg,
const void *pThunk
const sqlite3_api_routines *pThunk
){
static const struct {
char *zName;
Expand Down Expand Up @@ -703,7 +703,7 @@ static int SQLITE_TCLAPI autoinstall_test_funcs(
int objc,
Tcl_Obj *CONST objv[]
){
extern int Md5_Register(sqlite3 *, char **, const void *);
extern int Md5_Register(sqlite3 *, char **, const sqlite3_api_routines *);
int rc = sqlite3_auto_extension(registerTestFunctions);
if( rc==SQLITE_OK ){
rc = sqlite3_auto_extension(Md5_Register);
Expand Down Expand Up @@ -803,7 +803,7 @@ int Sqlitetest_func_Init(Tcl_Interp *interp){
{ "abuse_create_function", abuse_create_function },
};
int i;
extern int Md5_Register(sqlite3 *, char **, const void *);
extern int Md5_Register(sqlite3 *, char **, const sqlite3_api_routines *);

for(i=0; i<sizeof(aObjCmd)/sizeof(aObjCmd[0]); i++){
Tcl_CreateObjCommand(interp, aObjCmd[i].zName, aObjCmd[i].xProc, 0, 0);
Expand Down
2 changes: 1 addition & 1 deletion src/test_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static int SQLITE_TCLAPI sqlthread_open(
const char *zFilename;
sqlite3 *db;
char zBuf[100];
extern int Md5_Register(sqlite3 *, char **, const void *);
extern int Md5_Register(sqlite3 *, char **, const sqlite3_api_routines *);

UNUSED_PARAMETER(clientData);
UNUSED_PARAMETER(objc);
Expand Down

0 comments on commit bfd669b

Please sign in to comment.