mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Get rid of compiler warning
This commit is contained in:
		
							parent
							
								
									393acc198e
								
							
						
					
					
						commit
						fc0a0352db
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -163,7 +163,7 @@ CONV_FUNC(32_sign_end, long, long, bswap_32(src) ^ 0x80)
 | 
			
		|||
CONV_FUNC(32_end_sign_end, long, long, src ^ 0x80)
 | 
			
		||||
 | 
			
		||||
/* src_wid dst_wid src_endswap, dst_endswap, sign_swap */
 | 
			
		||||
conv_f convert_functions[4][4][2][2][2] = {
 | 
			
		||||
conv_f convert_functions[4 * 4 * 2 * 2 * 2] = {
 | 
			
		||||
	NULL,			/* 8->8: Nothing to do */
 | 
			
		||||
	conv_8_sign,		/* 8->8 sign: conv_8_sign */
 | 
			
		||||
	NULL,			/* 8->8 dst_end: Nothing to do */
 | 
			
		||||
| 
						 | 
				
			
			@ -426,7 +426,7 @@ int snd_pcm_plugin_build_linear(snd_pcm_format_t *src_format,
 | 
			
		|||
	if (dst_endian < 0)
 | 
			
		||||
		dst_endian = 0;
 | 
			
		||||
 | 
			
		||||
	func = convert_functions[src_width][dst_width][src_endian][dst_endian][sign];
 | 
			
		||||
	func = ((conv_f(*)[4][2][2][2])convert_functions)[src_width][dst_width][src_endian][dst_endian][sign];
 | 
			
		||||
 | 
			
		||||
	if (func == NULL)
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue