From f83987711c2daa34d585749fa0b573cdfd5be930 Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 3 Dec 2019 12:26:45 -0500 Subject: [PATCH] silence -Wmaybe-uninitialized through ...whitespace? :/ --- src/lib/notcurses.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index 9bd39f335..94c1446fe 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -1132,8 +1132,10 @@ int notcurses_render(notcurses* nc){ // we can elide the foreground set iff the previous used fg and matched if(!cell_fg_default_p(c)){ cell_get_fg(c, &r, &g, &b); - if(fgelidable && lastr == r && lastg == g && lastb == b){ - ++fgelisions; + if(fgelidable){ + if(lastr == r && lastg == g && lastb == b){ + ++fgelisions; + } }else{ term_fg_rgb8(nc, out, r, g, b); ++fgemissions; @@ -1144,8 +1146,10 @@ int notcurses_render(notcurses* nc){ } if(!cell_bg_default_p(c)){ cell_get_bg(c, &br, &bg, &bb); - if(bgelidable && lastbr == br && lastbg == bg && lastbb == bb){ - ++bgelisions; + if(bgelidable){ + if(lastbr == br && lastbg == bg && lastbb == bb){ + ++bgelisions; + } }else{ term_bg_rgb8(nc, out, br, bg, bb); ++bgemissions;