Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/tmux/dist Appease gcc. Init "terminator".



details:   https://anonhg.NetBSD.org/src/rev/9a30d33bc460
branches:  trunk
changeset: 461006:9a30d33bc460
user:      kre <kre%NetBSD.org@localhost>
date:      Wed Nov 13 00:19:46 2019 +0000

description:
Appease gcc.   Init "terminator".

It is plainly obvious that the init value cannot be used (the
var was never used uninit'd - could not be) but gcc apparently cannot
work that out.   Revert this if we ever get a compiler with a brain.

diffstat:

 external/bsd/tmux/dist/tty-keys.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r cdb2191684dd -r 9a30d33bc460 external/bsd/tmux/dist/tty-keys.c
--- a/external/bsd/tmux/dist/tty-keys.c Tue Nov 12 23:54:34 2019 +0000
+++ b/external/bsd/tmux/dist/tty-keys.c Wed Nov 13 00:19:46 2019 +0000
@@ -931,6 +931,7 @@
                return (1);
 
        /* Find the terminator if any. */
+       terminator = 0; /* XXX: appease gcc (this value is never used) */
        for (end = 5; end < len; end++) {
                if (buf[end] == '\007') {
                        terminator = 1;



Home | Main Index | Thread Index | Old Index