File kitty-gcc16.patch of Package kitty

--- kitty/screen.c	2026-02-23 13:16:19.261838333 +0000
+++ kitty/screen.c	2026-02-23 13:18:41.614654620 +0000
@@ -3918,7 +3918,7 @@ static hyperlink_id_type
 hyperlink_id_for_range(Screen *self, const Selection *sel) {
     IterationData idata;
     iteration_data(sel, &idata, self->columns, -self->historybuf->count, 0);
-    for (int i = 0, y = idata.y; y < idata.y_limit && y < (int)self->lines; y++, i++) {
+    for (int y = idata.y; y < idata.y_limit && y < (int)self->lines; y++) {
         Line *line = range_line_(self, y);
         XRange xr = xrange_for_iteration(&idata, y, line);
         for (index_type x = xr.x; x < xr.x_limit; x++) {

openSUSE Build Service is sponsored by