/ Check-in [271e27fd]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Get rid of the following compile-time warning: "src/shell.c:112: warning: 'iotracePrintf' defined but not used" (CVS 4188)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 271e27fd30f3b99e6d6ad2fc2c6e87f43f4c76c8
User & Date: rse 2007-07-30 18:24:39
Context
2007-07-30
18:26
Get rid of the following compile-time warnings: tool/mkkeywordhash.c:353: warning: array subscript has type 'char' tool/mkkeywordhash.c:354: warning: array subscript has type 'char' (CVS 4189) check-in: c01d7944 user: rse tags: trunk
18:24
Get rid of the following compile-time warning: "src/shell.c:112: warning: 'iotracePrintf' defined but not used" (CVS 4188) check-in: 271e27fd user: rse tags: trunk
14:40
Fix a bug with explicit collation sequences attached to a column reference expression that is on the right-hand-side of a binary comparison operator. (CVS 4187) check-in: 7b699686 user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code to implement the "sqlite" command line
    13     13   ** utility for accessing SQLite databases.
    14     14   **
    15         -** $Id: shell.c,v 1.164 2007/07/03 05:31:16 danielk1977 Exp $
           15  +** $Id: shell.c,v 1.165 2007/07/30 18:24:39 rse Exp $
    16     16   */
    17     17   #include <stdlib.h>
    18     18   #include <string.h>
    19     19   #include <stdio.h>
    20     20   #include <assert.h>
    21     21   #include "sqlite3.h"
    22     22   #include <ctype.h>
................................................................................
    97     97   */
    98     98   static char mainPrompt[20];     /* First line prompt. default: "sqlite> "*/
    99     99   static char continuePrompt[20]; /* Continuation prompt. default: "   ...> " */
   100    100   
   101    101   /*
   102    102   ** Write I/O traces to the following stream.
   103    103   */
          104  +#ifdef SQLITE_ENABLE_IOTRACE
   104    105   static FILE *iotrace = 0;
          106  +#endif
   105    107   
   106    108   /*
   107    109   ** This routine works like printf in that its first argument is a
   108    110   ** format string and subsequent arguments are values to be substituted
   109    111   ** in place of % fields.  The result of formatting this string
   110    112   ** is written to iotrace.
   111    113   */
          114  +#ifdef SQLITE_ENABLE_IOTRACE
   112    115   static void iotracePrintf(const char *zFormat, ...){
   113    116     va_list ap;
   114    117     char *z;
   115    118     if( iotrace==0 ) return;
   116    119     va_start(ap, zFormat);
   117    120     z = sqlite3_vmprintf(zFormat, ap);
   118    121     va_end(ap);
   119    122     fprintf(iotrace, "%s", z);
   120    123     sqlite3_free(z);
   121    124   }
          125  +#endif
   122    126   
   123    127   
   124    128   /*
   125    129   ** Determines if a string is a number of not.
   126    130   */
   127    131   static int isNumber(const char *z, int *realnum){
   128    132     if( *z=='-' || *z=='+' ) z++;