mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
demo_nanosleep_abstime_ns: silence compiler warning
This commit is contained in:
parent
9ff805e754
commit
b617587ade
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user