/ Check-in [2fba7a96]
Login

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

Overview
Comment:Fix harmless compiler warnings in the TCL test harness logic.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | vtab-like-operator
Files: files | file ages | folders
SHA1: 2fba7a96566b5448f527a4ec6a26e860c4889813
User & Date: drh 2015-11-24 18:04:39
Context
2015-11-24
18:16
Fix a problem in whereexpr.c causing a crash while processing a user-function taht accepts zero arguments. check-in: 069e51b1 user: dan tags: vtab-like-operator
18:04
Fix harmless compiler warnings in the TCL test harness logic. check-in: 2fba7a96 user: drh tags: vtab-like-operator
17:44
Merge latest trunk changes with this branch. check-in: 99222bb3 user: dan tags: vtab-like-operator
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_tclvar.c.

   172    172     const char *zRegexp = "";
   173    173     const char *zLike = "";
   174    174     int i;
   175    175   
   176    176     for(i=0; idxStr[i]; i++){
   177    177       switch( idxStr[i] ){
   178    178         case TCLVAR_NAME_EQ:
   179         -        zEq = sqlite3_value_text(argv[i]);
          179  +        zEq = (const char*)sqlite3_value_text(argv[i]);
   180    180           break;
   181    181         case TCLVAR_NAME_MATCH:
   182         -        zMatch = sqlite3_value_text(argv[i]);
          182  +        zMatch = (const char*)sqlite3_value_text(argv[i]);
   183    183           break;
   184    184         case TCLVAR_VALUE_GLOB:
   185         -        zGlob = sqlite3_value_text(argv[i]);
          185  +        zGlob = (const char*)sqlite3_value_text(argv[i]);
   186    186           break;
   187    187         case TCLVAR_VALUE_REGEXP:
   188         -        zRegexp = sqlite3_value_text(argv[i]);
          188  +        zRegexp = (const char*)sqlite3_value_text(argv[i]);
   189    189           break;
   190    190         case TCLVAR_VALUE_LIKE:
   191         -        zLike = sqlite3_value_text(argv[i]);
          191  +        zLike = (const char*)sqlite3_value_text(argv[i]);
   192    192           break;
   193    193         default:
   194    194           assert( 0 );
   195    195       }
   196    196     }
   197    197   
   198    198     Tcl_IncrRefCount(p);