diff options
author | 2018-01-16 17:17:18 +0000 | |
---|---|---|
committer | 2018-01-16 17:17:18 +0000 | |
commit | 565b72497f5c20de6c5fbb35a70eecd48526ae57 (patch) | |
tree | 2e16ef0dd056890c1e1d46b2d3f821eee193758e /bin/ksh/emacs.c | |
parent | Use the monotonic clock to compute the session duration. (diff) | |
download | wireguard-openbsd-565b72497f5c20de6c5fbb35a70eecd48526ae57.tar.xz wireguard-openbsd-565b72497f5c20de6c5fbb35a70eecd48526ae57.zip |
One minor scan-build warning
emacs.c:1041:2: warning: Value stored to 'cp' is never read
Diffstat (limited to 'bin/ksh/emacs.c')
-rw-r--r-- | bin/ksh/emacs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c index 4c591e27b42..b88219d7440 100644 --- a/bin/ksh/emacs.c +++ b/bin/ksh/emacs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emacs.c,v 1.83 2018/01/14 16:04:21 anton Exp $ */ +/* $OpenBSD: emacs.c,v 1.84 2018/01/16 17:17:18 jca Exp $ */ /* * Emacs-like command line editing and history @@ -1038,7 +1038,7 @@ x_redraw(int limit) x_displen = xx_cols - 2; } xlp_valid = false; - cp = x_lastcp(); + x_lastcp(); x_zots(xbp); if (xbp != xbuf || xep > xlp) limit = xx_cols; |