From c343bee1b5de6087b70fe80db9e1f81bb1fc535c Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Sun, 17 Dec 2023 17:13:31 +0000 Subject: [PATCH] maint: avoid false positive warning with newer gcc * src/pr.c (read_line): GCC 13.2.1 can't discern that CHARS is not used with '\n', so avoid the -Werror=maybe-uninitialized issue in dev builds. --- src/pr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pr.c b/src/pr.c index c9ffa2c754..bc701269d2 100644 --- a/src/pr.c +++ b/src/pr.c @@ -2425,7 +2425,7 @@ static bool read_line (COLUMN *p) { int c; - int chars; + int chars IF_LINT (= 0); int last_input_position; int j, k; COLUMN *q; -- 2.47.2