Fossil SCM
Fix harmless compiler warning seen with MSVC.
Commit
afcff4999e4d2652b4c6edae68b430e2934ce05a
Parent
ad2dd95dbf283dd…
1 file changed
+1
-1
+1
-1
| --- src/import.c | ||
| +++ src/import.c | ||
| @@ -1652,11 +1652,11 @@ | ||
| 1652 | 1652 | */ |
| 1653 | 1653 | const char *zIgnTree; |
| 1654 | 1654 | unsigned nIgnTree = 0; |
| 1655 | 1655 | while( (zIgnTree = find_option("ignore-tree", 0, 1)) ){ |
| 1656 | 1656 | if ( *zIgnTree ){ |
| 1657 | - gsvn.azIgnTree = fossil_realloc(gsvn.azIgnTree, | |
| 1657 | + gsvn.azIgnTree = fossil_realloc((void *)gsvn.azIgnTree, | |
| 1658 | 1658 | sizeof(*gsvn.azIgnTree) * (nIgnTree + 2)); |
| 1659 | 1659 | gsvn.azIgnTree[nIgnTree++] = zIgnTree; |
| 1660 | 1660 | gsvn.azIgnTree[nIgnTree] = 0; |
| 1661 | 1661 | } |
| 1662 | 1662 | } |
| 1663 | 1663 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1652,11 +1652,11 @@ | |
| 1652 | */ |
| 1653 | const char *zIgnTree; |
| 1654 | unsigned nIgnTree = 0; |
| 1655 | while( (zIgnTree = find_option("ignore-tree", 0, 1)) ){ |
| 1656 | if ( *zIgnTree ){ |
| 1657 | gsvn.azIgnTree = fossil_realloc(gsvn.azIgnTree, |
| 1658 | sizeof(*gsvn.azIgnTree) * (nIgnTree + 2)); |
| 1659 | gsvn.azIgnTree[nIgnTree++] = zIgnTree; |
| 1660 | gsvn.azIgnTree[nIgnTree] = 0; |
| 1661 | } |
| 1662 | } |
| 1663 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1652,11 +1652,11 @@ | |
| 1652 | */ |
| 1653 | const char *zIgnTree; |
| 1654 | unsigned nIgnTree = 0; |
| 1655 | while( (zIgnTree = find_option("ignore-tree", 0, 1)) ){ |
| 1656 | if ( *zIgnTree ){ |
| 1657 | gsvn.azIgnTree = fossil_realloc((void *)gsvn.azIgnTree, |
| 1658 | sizeof(*gsvn.azIgnTree) * (nIgnTree + 2)); |
| 1659 | gsvn.azIgnTree[nIgnTree++] = zIgnTree; |
| 1660 | gsvn.azIgnTree[nIgnTree] = 0; |
| 1661 | } |
| 1662 | } |
| 1663 |