1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

Get rid of the following compile-time warning:

"src/shell.c:112: warning: 'iotracePrintf' defined but not used" (CVS 4188)

FossilOrigin-Name: 271e27fd30f3b99e6d6ad2fc2c6e87f43f4c76c8
This commit is contained in:
rse
2007-07-30 18:24:38 +00:00
parent eb5453d122
commit be0a909683
3 changed files with 13 additions and 9 deletions

View File

@@ -12,7 +12,7 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
** $Id: shell.c,v 1.164 2007/07/03 05:31:16 danielk1977 Exp $
** $Id: shell.c,v 1.165 2007/07/30 18:24:39 rse Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -101,7 +101,9 @@ static char continuePrompt[20]; /* Continuation prompt. default: " ...> " */
/*
** Write I/O traces to the following stream.
*/
#ifdef SQLITE_ENABLE_IOTRACE
static FILE *iotrace = 0;
#endif
/*
** This routine works like printf in that its first argument is a
@@ -109,6 +111,7 @@ static FILE *iotrace = 0;
** in place of % fields. The result of formatting this string
** is written to iotrace.
*/
#ifdef SQLITE_ENABLE_IOTRACE
static void iotracePrintf(const char *zFormat, ...){
va_list ap;
char *z;
@@ -119,6 +122,7 @@ static void iotracePrintf(const char *zFormat, ...){
fprintf(iotrace, "%s", z);
sqlite3_free(z);
}
#endif
/*