fix a false-positive warnings with gcc 10.2+ and -Wall -O2 - sfeed_curses - sfe… | |
git clone git://git.codemadness.org/sfeed_curses | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8ebfb75d9ca26ce24a76aa3dc956182bd06f5b59 | |
parent 40bfd7846f72a063eede961e578f0ae667727b3f | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 25 Jul 2021 14:00:43 +0200 | |
fix a false-positive warnings with gcc 10.2+ and -Wall -O2 | |
These conditions cannot happen though. | |
Noticed on Oasis Linux: | |
https://github.com/oasislinux/oasis/blob/master/pkg/sfeed_curses/gen.lua | |
See also commit 61c48746013c47d77b47c0b7606882983b185b6d | |
Diffstat: | |
M sfeed_curses.c | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/sfeed_curses.c b/sfeed_curses.c | |
@@ -2358,12 +2358,14 @@ nextpage: | |
p = &panes[PaneFeeds]; | |
if ((row = pane_row_get(p, p->pos))) | |
f = row->data; | |
+ else | |
+ f = NULL; | |
onlynew = !onlynew; | |
updatesidebar(); | |
/* try to find the same feed in the pane */ | |
- if (row && f && f->totalnew && | |
+ if (f && f->totalnew && | |
(pos = feeds_row_get(p, f)) != -1) | |
pane_setpos(p, pos); | |
else |