Fossil SCM
Change an assert() to a fossil_fatal() to make the error message appear in the web UI.
Commit
3aad57dd7c7d01dd16344a04a7f60f11fdc6720fa024f4a2fd96d851873b4705
Parent
abd3bca70ecb9ef…
1 file changed
+2
-2
+2
-2
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -1311,11 +1311,11 @@ | ||
| 1311 | 1311 | htmlize_to_blob(p->pOut, pLine->z, (int)pLine->n); |
| 1312 | 1312 | blob_append (p->pOut, "</del></td>", 11); |
| 1313 | 1313 | blob_append (p->pOut, "</tr>\n", 6); |
| 1314 | 1314 | } |
| 1315 | 1315 | static void dfunifiedReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1316 | - assert( 0 && "The seemingly unused function dfunifiedReplace() was called!"); | |
| 1316 | + fossil_fatal("The seemingly unused function dfunifiedReplace() was called!"); | |
| 1317 | 1317 | } |
| 1318 | 1318 | static void dfunifiedEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1319 | 1319 | int i; |
| 1320 | 1320 | int x; |
| 1321 | 1321 | LineChange chng; |
| @@ -1476,11 +1476,11 @@ | ||
| 1476 | 1476 | blob_append (p->pOut, "<td class=\"diffsep nul\"></td>", 29); |
| 1477 | 1477 | blob_append (p->pOut, "<td class=\"difftxt difftxtr nul\"></td>", 38); |
| 1478 | 1478 | blob_append (p->pOut, "</tr>\n", 6); |
| 1479 | 1479 | } |
| 1480 | 1480 | static void dfsplitReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1481 | - assert( 0 && "The seemingly unused function dfsplitReplace() was called!"); | |
| 1481 | + fossil_fatal("The seemingly unused function dfsplitReplace() was called!"); | |
| 1482 | 1482 | } |
| 1483 | 1483 | static void dfsplitEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1484 | 1484 | int i; |
| 1485 | 1485 | int x; |
| 1486 | 1486 | LineChange chng; |
| 1487 | 1487 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -1311,11 +1311,11 @@ | |
| 1311 | htmlize_to_blob(p->pOut, pLine->z, (int)pLine->n); |
| 1312 | blob_append (p->pOut, "</del></td>", 11); |
| 1313 | blob_append (p->pOut, "</tr>\n", 6); |
| 1314 | } |
| 1315 | static void dfunifiedReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1316 | assert( 0 && "The seemingly unused function dfunifiedReplace() was called!"); |
| 1317 | } |
| 1318 | static void dfunifiedEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1319 | int i; |
| 1320 | int x; |
| 1321 | LineChange chng; |
| @@ -1476,11 +1476,11 @@ | |
| 1476 | blob_append (p->pOut, "<td class=\"diffsep nul\"></td>", 29); |
| 1477 | blob_append (p->pOut, "<td class=\"difftxt difftxtr nul\"></td>", 38); |
| 1478 | blob_append (p->pOut, "</tr>\n", 6); |
| 1479 | } |
| 1480 | static void dfsplitReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1481 | assert( 0 && "The seemingly unused function dfsplitReplace() was called!"); |
| 1482 | } |
| 1483 | static void dfsplitEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1484 | int i; |
| 1485 | int x; |
| 1486 | LineChange chng; |
| 1487 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -1311,11 +1311,11 @@ | |
| 1311 | htmlize_to_blob(p->pOut, pLine->z, (int)pLine->n); |
| 1312 | blob_append (p->pOut, "</del></td>", 11); |
| 1313 | blob_append (p->pOut, "</tr>\n", 6); |
| 1314 | } |
| 1315 | static void dfunifiedReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1316 | fossil_fatal("The seemingly unused function dfunifiedReplace() was called!"); |
| 1317 | } |
| 1318 | static void dfunifiedEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1319 | int i; |
| 1320 | int x; |
| 1321 | LineChange chng; |
| @@ -1476,11 +1476,11 @@ | |
| 1476 | blob_append (p->pOut, "<td class=\"diffsep nul\"></td>", 29); |
| 1477 | blob_append (p->pOut, "<td class=\"difftxt difftxtr nul\"></td>", 38); |
| 1478 | blob_append (p->pOut, "</tr>\n", 6); |
| 1479 | } |
| 1480 | static void dfsplitReplace(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1481 | fossil_fatal("The seemingly unused function dfsplitReplace() was called!"); |
| 1482 | } |
| 1483 | static void dfsplitEdit(DiffBuilder *p, const DLine *pX, const DLine *pY){ |
| 1484 | int i; |
| 1485 | int x; |
| 1486 | LineChange chng; |
| 1487 |