mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Silence unused-but-set-variable warning
This was breaking the kmod port build on FreeBSD with Clang 13. Use the same trick as we do for ASSERT() to make DNODE_VERIFY() use its parameter at compile time without actually using it at run time in non-debug builds. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #13507
This commit is contained in:
		
							parent
							
								
									2458c7e63a
								
							
						
					
					
						commit
						090bda59e3
					
				| @ -616,7 +616,7 @@ _NOTE(CONSTCOND) } while (0) | |||||||
| #else | #else | ||||||
| 
 | 
 | ||||||
| #define	dprintf_dnode(db, fmt, ...) | #define	dprintf_dnode(db, fmt, ...) | ||||||
| #define	DNODE_VERIFY(dn) | #define	DNODE_VERIFY(dn)		((void) sizeof ((uintptr_t)(dn))) | ||||||
| #define	FREE_VERIFY(db, start, end, tx) | #define	FREE_VERIFY(db, start, end, tx) | ||||||
| 
 | 
 | ||||||
| #endif | #endif | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Ryan Moeller
						Ryan Moeller