File sbsigntools-gcc16.patch of Package sbsigntools

diff -upr sbsigntools-0.9.5.orig/src/image.c sbsigntools-0.9.5/src/image.c
--- sbsigntools-0.9.5.orig/src/image.c	2026-02-18 11:07:19.304668001 +0000
+++ sbsigntools-0.9.5/src/image.c	2026-02-18 11:12:46.519734070 +0000
@@ -512,24 +512,15 @@ int image_hash_sha256(struct image *imag
 {
 	struct region *region;
 	SHA256_CTX ctx;
-	int rc, i, n;
+	int rc, i;
 
 	rc = SHA256_Init(&ctx);
 	if (!rc)
 		return -1;
 
-	n = 0;
-
 	for (i = 0; i < image->n_checksum_regions; i++) {
 		region = &image->checksum_regions[i];
-		n += region->size;
-#if 0
-		printf("sum region: 0x%04lx -> 0x%04lx [0x%04x bytes]\n",
-				region->data - image->buf,
-				region->data - image->buf - 1 + region->size,
-				region->size);
 
-#endif
 		rc = SHA256_Update(&ctx, region->data, region->size);
 		if (!rc)
 			return -1;

openSUSE Build Service is sponsored by