render: reorder assignment to work around -Wclobbered

pull/124/head
nick black 5 years ago
parent 98b323e9a0
commit 79253caf31
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1181,11 +1181,12 @@ mutex_unlock(void* vlock){
}
int notcurses_render(notcurses* nc){
int ret = 0;
int ret;
struct timespec start, done;
clock_gettime(CLOCK_MONOTONIC_RAW, &start);
pthread_mutex_lock(&nc->lock);
pthread_cleanup_push(mutex_unlock, &nc->lock);
ret = 0;
int bytes = notcurses_render_internal(nc);
int dimy, dimx;
notcurses_resize(nc, &dimy, &dimx);

Loading…
Cancel
Save