mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Prevent 'unused variable' warnings when compiled without asserts
This commit is contained in:
		
							parent
							
								
									e9552fb661
								
							
						
					
					
						commit
						a5c6b2f83d
					
				
					 4 changed files with 10 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -1411,6 +1411,8 @@ post_processing(void)
 | 
			
		|||
	if (!libinput_category_get_default()) {
 | 
			
		||||
		/* So we still allow tap to click by default */
 | 
			
		||||
		struct libinput_category *l = libinput_category_create();
 | 
			
		||||
		/* Prevents unused variable warning when compiled without asserts */
 | 
			
		||||
		(void)l;
 | 
			
		||||
		assert(l && libinput_category_get_default() == l);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue