Fossil SCM

Silence compiler warnings about unused variables in print_timeline.

mistachkin 2011-08-29 10:31 UTC tcl-integration
Commit b76ce3d5f1c329871702098700da99d41a262ced
2 files changed +4 -1 -3
+4 -1
--- src/th_tcl.c
+++ src/th_tcl.c
@@ -44,11 +44,14 @@
4444
/*
4545
** Returns the Tcl interpreter result as a string with the associated length.
4646
** If the Tcl interpreter or the Tcl result are NULL, the length will be 0.
4747
** If the length pointer is NULL, the length will not be stored.
4848
*/
49
-static char *getTclResult(Tcl_Interp *pInterp, int *pN){
49
+static char *getTclResult(
50
+ Tcl_Interp *pInterp,
51
+ int *pN
52
+){
5053
Tcl_Obj *resultPtr;
5154
if( !pInterp ){ /* This should not happen. */
5255
if( pN ) *pN = 0;
5356
return 0;
5457
}
5558
--- 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
--- src/timeline.c
+++ src/timeline.c
@@ -1312,11 +1312,10 @@
13121312
zFree = sqlite3_mprintf("[%.10s] %s%s", zUuid, zPrefix, zCom);
13131313
nLine += comment_print(zFree, 9, 79);
13141314
sqlite3_free(zFree);
13151315
13161316
if(showfiles){
1317
- int inUl = 0;
13181317
if( !fchngQueryInit ){
13191318
db_prepare(&fchngQuery,
13201319
"SELECT (pid==0) AS isnew,"
13211320
" (fid==0) AS isdel,"
13221321
" (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name,"
@@ -1331,12 +1330,10 @@
13311330
db_bind_int(&fchngQuery, ":mid", rid);
13321331
while( db_step(&fchngQuery)==SQLITE_ROW ){
13331332
const char *zFilename = db_column_text(&fchngQuery, 2);
13341333
int isNew = db_column_int(&fchngQuery, 0);
13351334
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);
13381335
if( isNew ){
13391336
fossil_print(" ADDED %s\n",zFilename);
13401337
}else if( isDel ){
13411338
fossil_print(" DELETED %s\n",zFilename);
13421339
}else{
13431340
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button