diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2014-03-31 20:04:35 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2015-07-02 14:28:44 +0200 |
commit | 00677ff2cf611fe084adf9ffa18336954d9acb67 (patch) | |
tree | 8553ec784548eeadfee040e15f628e050981ddc4 /src/mark.c | |
parent | 3cd29717de920bd0a720fcac184685a8952f89ba (diff) | |
download | screen-00677ff2cf611fe084adf9ffa18336954d9acb67.tar.gz |
Dead assignment
clang analyzer
Value stored to 'rep_cnt' is never read
Diffstat (limited to 'src/mark.c')
-rw-r--r-- | src/mark.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -660,7 +660,7 @@ static void MarkProcess(char **inbufp, int *inlenp) case '\005': /* CTRL-E scroll up */ if (rep_cnt == 0) rep_cnt = 1; - rep_cnt = MarkScrollUpDisplay(rep_cnt); + MarkScrollUpDisplay(rep_cnt); if (cy < D2W(0)) revto(cx, D2W(0)); else @@ -669,7 +669,7 @@ static void MarkProcess(char **inbufp, int *inlenp) case '\031': /* CTRL-Y scroll down */ if (rep_cnt == 0) rep_cnt = 1; - rep_cnt = MarkScrollDownDisplay(rep_cnt); + MarkScrollDownDisplay(rep_cnt); if (cy > D2W(fore->w_height - 1)) revto(cx, D2W(fore->w_height - 1)); else |