Lint Cleanup

This remove some stores that clang assures me are very dead.

And an assert() for an unlikely NULL pointer dereference I can't quite
figure out.
This commit is contained in:
Aaron Gyes
2016-06-14 19:21:50 -07:00
parent d70be18c42
commit 9f0c31611c
7 changed files with 11 additions and 13 deletions

View File

@@ -2176,6 +2176,7 @@ static int threaded_highlight(background_highlight_context_t *ctx) {
/// an asynchronous highlight in the background, which may perform disk I/O.
static void reader_super_highlight_me_plenty(int match_highlight_pos_adjust, bool no_io) {
const editable_line_t *el = &data->command_line;
assert (el != NULL);
long match_highlight_pos = (long)el->position + match_highlight_pos_adjust;
assert(match_highlight_pos >= 0);