From 565b72497f5c20de6c5fbb35a70eecd48526ae57 Mon Sep 17 00:00:00 2001 From: jca Date: Tue, 16 Jan 2018 17:17:18 +0000 Subject: [PATCH] One minor scan-build warning emacs.c:1041:2: warning: Value stored to 'cp' is never read --- bin/ksh/emacs.c | 4 ++-- 1 file 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; -- 2.20.1