bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-diffutils] bug#33863: [PATCH] build: avoid build failure with --ena


From: Jim Meyering
Subject: [bug-diffutils] bug#33863: [PATCH] build: avoid build failure with --enable-gcc-warnings and latest gcc
Date: Mon, 24 Dec 2018 16:00:20 -0800

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);

Attachment: format-overflow-warning.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]