Fossil SCM
Compiler warning (MSVC) in timeline.c, found by Kevin, reported on fossil-users list
Commit
fe3d30fc60e2eafcd9a21269df7fa932338da7ac
Parent
cf2adc71e8e362b…
6 files changed
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
| --- src/graph.c | ||
| +++ src/graph.c | ||
| @@ -347,11 +347,11 @@ | ||
| 347 | 347 | GraphRow *pRow, *pDesc, *pDup, *pLoop, *pParent; |
| 348 | 348 | int i, j; |
| 349 | 349 | u64 mask; |
| 350 | 350 | int hasDup = 0; /* True if one or more isDup entries */ |
| 351 | 351 | const char *zTrunk; |
| 352 | - int railRid[GR_MAX_RAIL]; /* Maps rails to rids for lines | |
| 352 | + int railRid[GR_MAX_RAIL]; /* Maps rails to rids for lines | |
| 353 | 353 | that enter from bottom of screen */ |
| 354 | 354 | |
| 355 | 355 | if( p==0 || p->pFirst==0 || p->nErr ) return; |
| 356 | 356 | p->nErr = 1; /* Assume an error until proven otherwise */ |
| 357 | 357 | |
| 358 | 358 |
| --- src/graph.c | |
| +++ src/graph.c | |
| @@ -347,11 +347,11 @@ | |
| 347 | GraphRow *pRow, *pDesc, *pDup, *pLoop, *pParent; |
| 348 | int i, j; |
| 349 | u64 mask; |
| 350 | int hasDup = 0; /* True if one or more isDup entries */ |
| 351 | const char *zTrunk; |
| 352 | int railRid[GR_MAX_RAIL]; /* Maps rails to rids for lines |
| 353 | that enter from bottom of screen */ |
| 354 | |
| 355 | if( p==0 || p->pFirst==0 || p->nErr ) return; |
| 356 | p->nErr = 1; /* Assume an error until proven otherwise */ |
| 357 | |
| 358 |
| --- src/graph.c | |
| +++ src/graph.c | |
| @@ -347,11 +347,11 @@ | |
| 347 | GraphRow *pRow, *pDesc, *pDup, *pLoop, *pParent; |
| 348 | int i, j; |
| 349 | u64 mask; |
| 350 | int hasDup = 0; /* True if one or more isDup entries */ |
| 351 | const char *zTrunk; |
| 352 | int railRid[GR_MAX_RAIL]; /* Maps rails to rids for lines |
| 353 | that enter from bottom of screen */ |
| 354 | |
| 355 | if( p==0 || p->pFirst==0 || p->nErr ) return; |
| 356 | p->nErr = 1; /* Assume an error until proven otherwise */ |
| 357 | |
| 358 |
+1
-1
| --- src/mkindex.c | ||
| +++ src/mkindex.c | ||
| @@ -223,11 +223,11 @@ | ||
| 223 | 223 | fprintf(stderr, "%s:%d: unknown option: '%.*s'\n", |
| 224 | 224 | zFile, nLine, j, &zLine[i]); |
| 225 | 225 | nErr++; |
| 226 | 226 | } |
| 227 | 227 | } |
| 228 | - | |
| 228 | + | |
| 229 | 229 | nUsed++; |
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | /* |
| 233 | 233 | ** Check to see if the current line is an #if and if it is, add it to |
| 234 | 234 |
| --- src/mkindex.c | |
| +++ src/mkindex.c | |
| @@ -223,11 +223,11 @@ | |
| 223 | fprintf(stderr, "%s:%d: unknown option: '%.*s'\n", |
| 224 | zFile, nLine, j, &zLine[i]); |
| 225 | nErr++; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | nUsed++; |
| 230 | } |
| 231 | |
| 232 | /* |
| 233 | ** Check to see if the current line is an #if and if it is, add it to |
| 234 |
| --- src/mkindex.c | |
| +++ src/mkindex.c | |
| @@ -223,11 +223,11 @@ | |
| 223 | fprintf(stderr, "%s:%d: unknown option: '%.*s'\n", |
| 224 | zFile, nLine, j, &zLine[i]); |
| 225 | nErr++; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | nUsed++; |
| 230 | } |
| 231 | |
| 232 | /* |
| 233 | ** Check to see if the current line is an #if and if it is, add it to |
| 234 |
+1
-1
| --- src/search.c | ||
| +++ src/search.c | ||
| @@ -407,11 +407,11 @@ | ||
| 407 | 407 | |
| 408 | 408 | /* search_match(TEXT, TEXT, ....) |
| 409 | 409 | ** |
| 410 | 410 | ** Using the full-scan search engine created by the most recent call |
| 411 | 411 | ** to search_init(), match the input the TEXT arguments. |
| 412 | -** Remember the results global full-scan search object. | |
| 412 | +** Remember the results global full-scan search object. | |
| 413 | 413 | ** Return non-zero on a match and zero on a miss. |
| 414 | 414 | */ |
| 415 | 415 | static void search_match_sqlfunc( |
| 416 | 416 | sqlite3_context *context, |
| 417 | 417 | int argc, |
| 418 | 418 |
| --- src/search.c | |
| +++ src/search.c | |
| @@ -407,11 +407,11 @@ | |
| 407 | |
| 408 | /* search_match(TEXT, TEXT, ....) |
| 409 | ** |
| 410 | ** Using the full-scan search engine created by the most recent call |
| 411 | ** to search_init(), match the input the TEXT arguments. |
| 412 | ** Remember the results global full-scan search object. |
| 413 | ** Return non-zero on a match and zero on a miss. |
| 414 | */ |
| 415 | static void search_match_sqlfunc( |
| 416 | sqlite3_context *context, |
| 417 | int argc, |
| 418 |
| --- src/search.c | |
| +++ src/search.c | |
| @@ -407,11 +407,11 @@ | |
| 407 | |
| 408 | /* search_match(TEXT, TEXT, ....) |
| 409 | ** |
| 410 | ** Using the full-scan search engine created by the most recent call |
| 411 | ** to search_init(), match the input the TEXT arguments. |
| 412 | ** Remember the results global full-scan search object. |
| 413 | ** Return non-zero on a match and zero on a miss. |
| 414 | */ |
| 415 | static void search_match_sqlfunc( |
| 416 | sqlite3_context *context, |
| 417 | int argc, |
| 418 |
+1
-1
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -1537,11 +1537,11 @@ | ||
| 1537 | 1537 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1538 | 1538 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt> |
| 1539 | 1539 | @ in the check-out root. |
| 1540 | 1540 | @ If such a file is present, the corresponding field above is not |
| 1541 | 1541 | @ editable.</p><hr /><p> |
| 1542 | - @ These settings work the same as the | |
| 1542 | + @ These settings work the same as the | |
| 1543 | 1543 | @ <a href='%R/help?cmd=settings'>fossil set</a> command. |
| 1544 | 1544 | db_end_transaction(0); |
| 1545 | 1545 | style_footer(); |
| 1546 | 1546 | } |
| 1547 | 1547 | |
| 1548 | 1548 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1537,11 +1537,11 @@ | |
| 1537 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1538 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt> |
| 1539 | @ in the check-out root. |
| 1540 | @ If such a file is present, the corresponding field above is not |
| 1541 | @ editable.</p><hr /><p> |
| 1542 | @ These settings work the same as the |
| 1543 | @ <a href='%R/help?cmd=settings'>fossil set</a> command. |
| 1544 | db_end_transaction(0); |
| 1545 | style_footer(); |
| 1546 | } |
| 1547 | |
| 1548 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1537,11 +1537,11 @@ | |
| 1537 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1538 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt> |
| 1539 | @ in the check-out root. |
| 1540 | @ If such a file is present, the corresponding field above is not |
| 1541 | @ editable.</p><hr /><p> |
| 1542 | @ These settings work the same as the |
| 1543 | @ <a href='%R/help?cmd=settings'>fossil set</a> command. |
| 1544 | db_end_transaction(0); |
| 1545 | style_footer(); |
| 1546 | } |
| 1547 | |
| 1548 |
+1
-1
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -757,11 +757,11 @@ | ||
| 757 | 757 | cgi_printf("mi:"); |
| 758 | 758 | cSep = '['; |
| 759 | 759 | for(i=0; i<GR_MAX_RAIL; i++){ |
| 760 | 760 | if( pRow->mergeIn[i] ){ |
| 761 | 761 | int mi = i; |
| 762 | - if( pRow->mergeDown & (1<<i) ) mi = -mi; | |
| 762 | + if( (pRow->mergeDown >> i) & 1 ) mi = -mi; | |
| 763 | 763 | cgi_printf("%c%d", cSep, mi); |
| 764 | 764 | cSep = ','; |
| 765 | 765 | } |
| 766 | 766 | } |
| 767 | 767 | if( cSep=='[' ) cgi_printf("["); |
| 768 | 768 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -757,11 +757,11 @@ | |
| 757 | cgi_printf("mi:"); |
| 758 | cSep = '['; |
| 759 | for(i=0; i<GR_MAX_RAIL; i++){ |
| 760 | if( pRow->mergeIn[i] ){ |
| 761 | int mi = i; |
| 762 | if( pRow->mergeDown & (1<<i) ) mi = -mi; |
| 763 | cgi_printf("%c%d", cSep, mi); |
| 764 | cSep = ','; |
| 765 | } |
| 766 | } |
| 767 | if( cSep=='[' ) cgi_printf("["); |
| 768 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -757,11 +757,11 @@ | |
| 757 | cgi_printf("mi:"); |
| 758 | cSep = '['; |
| 759 | for(i=0; i<GR_MAX_RAIL; i++){ |
| 760 | if( pRow->mergeIn[i] ){ |
| 761 | int mi = i; |
| 762 | if( (pRow->mergeDown >> i) & 1 ) mi = -mi; |
| 763 | cgi_printf("%c%d", cSep, mi); |
| 764 | cSep = ','; |
| 765 | } |
| 766 | } |
| 767 | if( cSep=='[' ) cgi_printf("["); |
| 768 |
+1
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -2140,11 +2140,11 @@ | ||
| 2140 | 2140 | } |
| 2141 | 2141 | if( syncFlags & (SYNC_UV_TRACE|SYNC_UV_DRYRUN) ){ |
| 2142 | 2142 | const char *zMsg = 0; |
| 2143 | 2143 | switch( iStatus ){ |
| 2144 | 2144 | case 0: |
| 2145 | - case 1: zMsg = "UV-PULL"; break; | |
| 2145 | + case 1: zMsg = "UV-PULL"; break; | |
| 2146 | 2146 | case 2: zMsg = "UV-PULL-MTIME-ONLY"; break; |
| 2147 | 2147 | case 4: zMsg = "UV-PUSH-MTIME-ONLY"; break; |
| 2148 | 2148 | case 5: zMsg = "UV-PUSH"; break; |
| 2149 | 2149 | } |
| 2150 | 2150 | if( zMsg ) fossil_print("\r%s: %s\n", zMsg, zName); |
| 2151 | 2151 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2140,11 +2140,11 @@ | |
| 2140 | } |
| 2141 | if( syncFlags & (SYNC_UV_TRACE|SYNC_UV_DRYRUN) ){ |
| 2142 | const char *zMsg = 0; |
| 2143 | switch( iStatus ){ |
| 2144 | case 0: |
| 2145 | case 1: zMsg = "UV-PULL"; break; |
| 2146 | case 2: zMsg = "UV-PULL-MTIME-ONLY"; break; |
| 2147 | case 4: zMsg = "UV-PUSH-MTIME-ONLY"; break; |
| 2148 | case 5: zMsg = "UV-PUSH"; break; |
| 2149 | } |
| 2150 | if( zMsg ) fossil_print("\r%s: %s\n", zMsg, zName); |
| 2151 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2140,11 +2140,11 @@ | |
| 2140 | } |
| 2141 | if( syncFlags & (SYNC_UV_TRACE|SYNC_UV_DRYRUN) ){ |
| 2142 | const char *zMsg = 0; |
| 2143 | switch( iStatus ){ |
| 2144 | case 0: |
| 2145 | case 1: zMsg = "UV-PULL"; break; |
| 2146 | case 2: zMsg = "UV-PULL-MTIME-ONLY"; break; |
| 2147 | case 4: zMsg = "UV-PUSH-MTIME-ONLY"; break; |
| 2148 | case 5: zMsg = "UV-PUSH"; break; |
| 2149 | } |
| 2150 | if( zMsg ) fossil_print("\r%s: %s\n", zMsg, zName); |
| 2151 |