shithub: gefs

Download patch

ref: f9ba748e3856172c4b5e0026bf1049706a83a520
parent: 7ecc61bd6bf431fc45181abcc9ce6422f2a911bf
author: Ori Bernstein <[email protected]>
date: Sun Jan 28 11:40:17 EST 2024

gefs: fix _Noreturn warnings

--- a/blk.c
+++ b/blk.c
@@ -376,7 +376,6 @@
 				a->used -= len;
 				break;
 			default:
-				n = 0;
 				dprint("\tlog@%x: log op %d\n", i, op);
 				abort();
 				break;
@@ -802,7 +801,6 @@
 		fprint(2, "invalid block @%lld\n", b->bp.addr);
 		abort();
 	}
-	return 0; // shut up kencc
 }
 
 void
--- a/check.c
+++ b/check.c
@@ -185,7 +185,6 @@
 			}
 			if(r->off+r->len >= n->off){
 				fprint(2, "overlaping range %llx+%llx >= %llx\n", r->off, r->len, n->off);
-				abort();
 				fail++;
 			}
 			r = n;
--- a/tree.c
+++ b/tree.c
@@ -1281,7 +1281,6 @@
 	path[npath].pullsz = 0;
 	npath++;
 
-	dh = -1;
 	rp = flush(t, path, npath);
 	rb = rp->nl;