Fossil SCM
Silence compiler warnings about unused variables in print_timeline.
Commit
b76ce3d5f1c329871702098700da99d41a262ced
Parent
3a6265696af8e63…
2 files changed
+4
-1
-3
+4
-1
| --- src/th_tcl.c | ||
| +++ src/th_tcl.c | ||
| @@ -44,11 +44,14 @@ | ||
| 44 | 44 | /* |
| 45 | 45 | ** Returns the Tcl interpreter result as a string with the associated length. |
| 46 | 46 | ** If the Tcl interpreter or the Tcl result are NULL, the length will be 0. |
| 47 | 47 | ** If the length pointer is NULL, the length will not be stored. |
| 48 | 48 | */ |
| 49 | -static char *getTclResult(Tcl_Interp *pInterp, int *pN){ | |
| 49 | +static char *getTclResult( | |
| 50 | + Tcl_Interp *pInterp, | |
| 51 | + int *pN | |
| 52 | +){ | |
| 50 | 53 | Tcl_Obj *resultPtr; |
| 51 | 54 | if( !pInterp ){ /* This should not happen. */ |
| 52 | 55 | if( pN ) *pN = 0; |
| 53 | 56 | return 0; |
| 54 | 57 | } |
| 55 | 58 |
| --- src/th_tcl.c | |
| +++ src/th_tcl.c | |
| @@ -44,11 +44,14 @@ | |
| 44 | /* |
| 45 | ** Returns the Tcl interpreter result as a string with the associated length. |
| 46 | ** If the Tcl interpreter or the Tcl result are NULL, the length will be 0. |
| 47 | ** If the length pointer is NULL, the length will not be stored. |
| 48 | */ |
| 49 | static char *getTclResult(Tcl_Interp *pInterp, int *pN){ |
| 50 | Tcl_Obj *resultPtr; |
| 51 | if( !pInterp ){ /* This should not happen. */ |
| 52 | if( pN ) *pN = 0; |
| 53 | return 0; |
| 54 | } |
| 55 |
| --- src/th_tcl.c | |
| +++ src/th_tcl.c | |
| @@ -44,11 +44,14 @@ | |
| 44 | /* |
| 45 | ** Returns the Tcl interpreter result as a string with the associated length. |
| 46 | ** If the Tcl interpreter or the Tcl result are NULL, the length will be 0. |
| 47 | ** If the length pointer is NULL, the length will not be stored. |
| 48 | */ |
| 49 | static char *getTclResult( |
| 50 | Tcl_Interp *pInterp, |
| 51 | int *pN |
| 52 | ){ |
| 53 | Tcl_Obj *resultPtr; |
| 54 | if( !pInterp ){ /* This should not happen. */ |
| 55 | if( pN ) *pN = 0; |
| 56 | return 0; |
| 57 | } |
| 58 |
-3
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1312,11 +1312,10 @@ | ||
| 1312 | 1312 | zFree = sqlite3_mprintf("[%.10s] %s%s", zUuid, zPrefix, zCom); |
| 1313 | 1313 | nLine += comment_print(zFree, 9, 79); |
| 1314 | 1314 | sqlite3_free(zFree); |
| 1315 | 1315 | |
| 1316 | 1316 | if(showfiles){ |
| 1317 | - int inUl = 0; | |
| 1318 | 1317 | if( !fchngQueryInit ){ |
| 1319 | 1318 | db_prepare(&fchngQuery, |
| 1320 | 1319 | "SELECT (pid==0) AS isnew," |
| 1321 | 1320 | " (fid==0) AS isdel," |
| 1322 | 1321 | " (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name," |
| @@ -1331,12 +1330,10 @@ | ||
| 1331 | 1330 | db_bind_int(&fchngQuery, ":mid", rid); |
| 1332 | 1331 | while( db_step(&fchngQuery)==SQLITE_ROW ){ |
| 1333 | 1332 | const char *zFilename = db_column_text(&fchngQuery, 2); |
| 1334 | 1333 | int isNew = db_column_int(&fchngQuery, 0); |
| 1335 | 1334 | int isDel = db_column_int(&fchngQuery, 1); |
| 1336 | - const char *zOld = db_column_text(&fchngQuery, 4); | |
| 1337 | - const char *zNew = db_column_text(&fchngQuery, 3); | |
| 1338 | 1335 | if( isNew ){ |
| 1339 | 1336 | fossil_print(" ADDED %s\n",zFilename); |
| 1340 | 1337 | }else if( isDel ){ |
| 1341 | 1338 | fossil_print(" DELETED %s\n",zFilename); |
| 1342 | 1339 | }else{ |
| 1343 | 1340 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1312,11 +1312,10 @@ | |
| 1312 | zFree = sqlite3_mprintf("[%.10s] %s%s", zUuid, zPrefix, zCom); |
| 1313 | nLine += comment_print(zFree, 9, 79); |
| 1314 | sqlite3_free(zFree); |
| 1315 | |
| 1316 | if(showfiles){ |
| 1317 | int inUl = 0; |
| 1318 | if( !fchngQueryInit ){ |
| 1319 | db_prepare(&fchngQuery, |
| 1320 | "SELECT (pid==0) AS isnew," |
| 1321 | " (fid==0) AS isdel," |
| 1322 | " (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name," |
| @@ -1331,12 +1330,10 @@ | |
| 1331 | db_bind_int(&fchngQuery, ":mid", rid); |
| 1332 | while( db_step(&fchngQuery)==SQLITE_ROW ){ |
| 1333 | const char *zFilename = db_column_text(&fchngQuery, 2); |
| 1334 | int isNew = db_column_int(&fchngQuery, 0); |
| 1335 | int isDel = db_column_int(&fchngQuery, 1); |
| 1336 | const char *zOld = db_column_text(&fchngQuery, 4); |
| 1337 | const char *zNew = db_column_text(&fchngQuery, 3); |
| 1338 | if( isNew ){ |
| 1339 | fossil_print(" ADDED %s\n",zFilename); |
| 1340 | }else if( isDel ){ |
| 1341 | fossil_print(" DELETED %s\n",zFilename); |
| 1342 | }else{ |
| 1343 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1312,11 +1312,10 @@ | |
| 1312 | zFree = sqlite3_mprintf("[%.10s] %s%s", zUuid, zPrefix, zCom); |
| 1313 | nLine += comment_print(zFree, 9, 79); |
| 1314 | sqlite3_free(zFree); |
| 1315 | |
| 1316 | if(showfiles){ |
| 1317 | if( !fchngQueryInit ){ |
| 1318 | db_prepare(&fchngQuery, |
| 1319 | "SELECT (pid==0) AS isnew," |
| 1320 | " (fid==0) AS isdel," |
| 1321 | " (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name," |
| @@ -1331,12 +1330,10 @@ | |
| 1330 | db_bind_int(&fchngQuery, ":mid", rid); |
| 1331 | while( db_step(&fchngQuery)==SQLITE_ROW ){ |
| 1332 | const char *zFilename = db_column_text(&fchngQuery, 2); |
| 1333 | int isNew = db_column_int(&fchngQuery, 0); |
| 1334 | int isDel = db_column_int(&fchngQuery, 1); |
| 1335 | if( isNew ){ |
| 1336 | fossil_print(" ADDED %s\n",zFilename); |
| 1337 | }else if( isDel ){ |
| 1338 | fossil_print(" DELETED %s\n",zFilename); |
| 1339 | }else{ |
| 1340 |