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
					Chun-wei Fan
				
			
				
					committed by
					
						 Christoph Reiter
						Christoph Reiter
					
				
			
			
				
	
			
			
			 Christoph Reiter
						Christoph Reiter
					
				
			
						parent
						
							92206fe23b
						
					
				
				
					commit
					0e24d35e3b
				
			| @ -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; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user