[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42656: term.c:1405:25: warning: ‘%d’ directive writing between 2 and
From: |
Andy Moreton |
Subject: |
bug#42656: term.c:1405:25: warning: ‘%d’ directive writing between 2 and 10 bytes into a region of size 3 |
Date: |
Tue, 18 Aug 2020 10:44:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) |
On Mon 17 Aug 2020, Paul Eggert wrote:
> I regularly get messages like that from old versions of GCC. It's better to
> ignore such messages, as we shouldn't clutter up the code merely to pacify
> older (or buggy) compilers.
>
> You can build with --disable-gcc-warnings to suppress the annoyances with
> older compilers (if you're building from Git, that is; you shouldn't need to
> specify anything if building from a tarball).
If the warning regularly generates many false positive results, then
disabling the warning should be be done by default, so an unmodified
tree gives a clean build.
AndyM