mirror of
				https://git.proxmox.com/git/mirror_zfs
				synced 2025-10-30 19:30:31 +00:00 
			
		
		
		
	Fix gcc unused value warning in FreeBSD simd.h
The macros `simd_stat_init()` and `simd_stat_fini()` in FreeBSD's
`simd.h` are defined as zero, but they are actually only used as
statements. Replace the definitions with `do {} while (0)` instead, to
avoid gcc `-Wunused-value` warnings.
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Toomas Soome <tsoome@me.com>
Signed-off-by: Dimitry Andric <dimitry@andric.com>
Closes #16693
			
			
This commit is contained in:
		
							parent
							
								
									e5d1f68167
								
							
						
					
					
						commit
						c480e06d88
					
				| @ -50,7 +50,7 @@ | ||||
| #define	kfpu_fini()		do {} while (0) | ||||
| #endif | ||||
| 
 | ||||
| #define	simd_stat_init()	0 | ||||
| #define	simd_stat_fini()	0 | ||||
| #define	simd_stat_init()	do {} while (0) | ||||
| #define	simd_stat_fini()	do {} while (0) | ||||
| 
 | ||||
| #endif | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Dimitry Andric
						Dimitry Andric