mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	scene: fix compile error in release builds
On release builds, gcc detects a variable uninitialized error, and generates a warning, which gets converted to an error due to -Werror.
This commit is contained in:
		
							parent
							
								
									e05c884891
								
							
						
					
					
						commit
						679f5ed966
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -243,7 +243,7 @@ static void _scene_node_damage_whole(struct wlr_scene_node *node,
 | 
			
		|||
			lx + child->state.x, ly + child->state.y);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	int width, height;
 | 
			
		||||
	int width = 0, height = 0;
 | 
			
		||||
	switch (node->type) {
 | 
			
		||||
	case WLR_SCENE_NODE_ROOT:
 | 
			
		||||
		return;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue