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

Previous Next

Package: diffutils;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Tue, 25 Dec 2018 00:01:02 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: bug-diffutils <at> gnu.org
Subject: [PATCH] build: avoid build failure with --enable-gcc-warnings and
 latest gcc
Date: Mon, 24 Dec 2018 16:00:20 -0800
[Message part 1 (text/plain, inline)]
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);
[format-overflow-warning.diff (application/octet-stream, attachment)]

This bug report was last modified 6 years and 149 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.