From a2ce4d8acef2c790671f353651840927b9b75681 Mon Sep 17 00:00:00 2001 From: Rene Kita Date: Wed, 22 Dec 2021 19:50:55 +0100 Subject: [PATCH] Remove a warning for bzero with GCC 12 GCC 12.2.0 on Arch reports: .table.c: In function ???set_table_matrix0???: .table.c:3536:5: error: ???__builtin_memset??? specified size between 18446744071562067969 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=] lto1: all warnings being treated as errors lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status child exited with value 1 make: *** [Makefile:132: w3m] Error 1 --- table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table.c b/table.c index 043df86..7479a82 100644 --- a/table.c +++ b/table.c @@ -3503,7 +3503,7 @@ correct_table_matrix4(struct table *t, int col, int cspan, char *flags, static void set_table_matrix0(struct table *t, int maxwidth) { - int size = t->maxcol + 1; + size_t size = t->maxcol + 1; int i, j, k, bcol, ecol; int width; double w0, w1, w, s, b;