Mercurial > vim
comparison src/ui.c @ 7009:286fd54c7ae3 v7.4.822
patch 7.4.822
Problem: More problems reported by coverity.
Solution: Avoid the warnings. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 11 Aug 2015 19:14:00 +0200 |
parents | 52b89a52ffd4 |
children | 1a34f5272977 |
comparison
equal
deleted
inserted
replaced
7008:7ce1f4e998bb | 7009:286fd54c7ae3 |
---|---|
2901 count += plines(curwin->w_topline - 1); | 2901 count += plines(curwin->w_topline - 1); |
2902 if (!first && count > -row) | 2902 if (!first && count > -row) |
2903 break; | 2903 break; |
2904 first = FALSE; | 2904 first = FALSE; |
2905 #ifdef FEAT_FOLDING | 2905 #ifdef FEAT_FOLDING |
2906 hasFolding(curwin->w_topline, &curwin->w_topline, NULL); | 2906 (void)hasFolding(curwin->w_topline, &curwin->w_topline, NULL); |
2907 #endif | 2907 #endif |
2908 #ifdef FEAT_DIFF | 2908 #ifdef FEAT_DIFF |
2909 if (curwin->w_topfill < diff_check(curwin, curwin->w_topline)) | 2909 if (curwin->w_topfill < diff_check(curwin, curwin->w_topline)) |
2910 ++curwin->w_topfill; | 2910 ++curwin->w_topfill; |
2911 else | 2911 else |