tests/: Declare variables at the top-of-block

This will ensure that the code will build for pre-C99 compilers.
This commit is contained in:
Chun-wei Fan
2019-03-13 13:06:04 +08:00
committed by Christoph Reiter
parent 92206fe23b
commit 0e24d35e3b
3 changed files with 8 additions and 6 deletions

View File

@ -237,11 +237,12 @@ collect_old_frames (void)
for (l = past_frames; l; l = l_next)
{
FrameData *frame_data = l->data;
GdkFrameTimings *timings;
gboolean remove = FALSE;
l_next = l->next;
GdkFrameTimings *timings = gdk_frame_clock_get_timings (frame_clock,
frame_data->frame_counter);
timings = gdk_frame_clock_get_timings (frame_clock,
frame_data->frame_counter);
if (timings == NULL)
{
remove = TRUE;