Browse code

uxnemu: fix two warnings on 9front build

Sigrid Solveig Haflínudóttir authored on 10/07/2023 15:37:42
Showing 1 changed files
... ...
@@ -470,7 +470,7 @@ static int
470 470
 run(Uxn *u)
471 471
 {
472 472
 	Uint64 next_refresh = 0;
473
-	Uint64 now = SDL_GetPerformanceCounter();
473
+	Uint64 now;
474 474
 	Uint64 frame_interval = SDL_GetPerformanceFrequency() / 60;
475 475
 	for(;;) {
476 476
 		Uint16 screen_vector;
... ...
@@ -489,9 +489,9 @@ run(Uxn *u)
489 489
 			if(uxn_screen.x2)
490 490
 				redraw();
491 491
 		}
492
-		if(BENCH)
493
-			;
494
-		else if(screen_vector || uxn_screen.x2) {
492
+		if(BENCH) {
493
+			/* no delay */
494
+		} else if(screen_vector || uxn_screen.x2) {
495 495
 			Uint64 delay_ms = (next_refresh - now) / ms_interval;
496 496
 			if(delay_ms > 0) SDL_Delay(delay_ms);
497 497
 		} else