From: Pádraig Brady Date: Sun, 17 Dec 2023 17:13:31 +0000 (+0000) Subject: maint: avoid false positive warning with newer gcc X-Git-Tag: v9.5~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c343bee1b5de6087b70fe80db9e1f81bb1fc535c;p=thirdparty%2Fcoreutils.git 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. --- 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;