From: jca Date: Tue, 16 Jan 2018 17:17:18 +0000 (+0000) Subject: One minor scan-build warning X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=565b72497f5c20de6c5fbb35a70eecd48526ae57;p=openbsd One minor scan-build warning emacs.c:1041:2: warning: Value stored to 'cp' is never read --- 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;