mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/session: non-void function should return a value
With assertions disabled, it should make sense to return NULL.
This commit is contained in:
		
							parent
							
								
									0695324de7
								
							
						
					
					
						commit
						68b4a5305e
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -258,6 +258,7 @@ static struct wlr_device *find_device(struct wlr_session *session,
 | 
			
		|||
	wlr_log(WLR_ERROR, "Tried to use dev_t %lu not opened by session",
 | 
			
		||||
		(unsigned long)devnum);
 | 
			
		||||
	assert(0);
 | 
			
		||||
	return NULL;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int pause_device(sd_bus_message *msg, void *userdata,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue