demo_nanosleep_abstime_ns: silence compiler warning

This commit is contained in:
nick black 2020-07-10 13:18:55 -04:00
parent 9ff805e754
commit b617587ade
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -479,11 +479,9 @@ demo_nanosleep_abstime_ns(struct notcurses* nc, uint64_t deadline){
}
ncinput ni;
// throw away any input we receive. if it was for the menu or HUD, it was
// already dispatched internally to demo_getc().
char32_t id;
if((id = demo_getc(nc, &fsleep, &ni)) < 0){
return -1;
}
// already dispatched internally to demo_getc(). we need to ensure input
// is being procesed, however, to drive the demo elements.
demo_getc(nc, &fsleep, &ni);
if(hud){
int r = demo_render(nc);
if(r){