Subject: bug#33863: closed (Re: [bug-diffutils] bug#33863: [PATCH] build: avoid build failure with --enable-gcc-warnings and latest gcc)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 25 Dec 2018 00:22:04 +0000

Your bug report

#33863: [PATCH] build: avoid build failure with --enable-gcc-warnings and latest gcc

which was filed against the diffutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
33863: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33863
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug-diffutils] bug#33863: [PATCH] build: avoid build failure with --enable-gcc-warnings and latest gcc
From: Jim Meyering <[email-masked]>
To: [email-masked]
Date: Mon, 24 Dec 2018 16:20:45 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Subject: [PATCH] build: avoid build failure with --enable-gcc-warnings and latest gcc
From: Jim Meyering <[email-masked]>
To: [email-masked]
Date: Mon, 24 Dec 2018 16:00:20 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Preparing for a release, I noticed a build failure. Here's what I've
just pushed, along with a few maintenance-related diffs:

* src/diff.c (usage): Assert that each line length is no longer than
the minimum required size of 4095.  This lets newer gcc (currently
9.0.0 20181219) infer that it need not issue this warning:
diff.c:1012:19: error: '%.*s' directive output between 0 and 2147483647
bytes may exceed minimum required size of 4095
[-Werror=format-overflow=]
1012 |        printf ("  %.*s", msglen, msg);