tests/sys/fs/ufs/sync_test.c: hide the alignment warning

Reported and tested by:	dhw
Fixes:	afe1dec742 ("tests: add UFS synchronous write durability tests")
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov committed 2026-10-13 16:48:52 +03:00
1 parent b951994edd
commit af08f29e5f
1 file changed
+2 -2
+2 -2
View File
@@ -223,8 +223,8 @@ ondisk_read(ino_t ino, int lbn, struct ondisk *od)
ATF_REQUIRE(bread(&disk, fsbtodb(fs, ib), buf,
fs->fs_bsize) == fs->fs_bsize);
od->blkno = disk.d_ufs == 1 ?
((ufs1_daddr_t *)buf)[lbn - UFS_NDADDR] :
((ufs2_daddr_t *)buf)[lbn - UFS_NDADDR];
__DECONST(ufs1_daddr_t *, buf)[lbn - UFS_NDADDR] :
__DECONST(ufs2_daddr_t *, buf)[lbn - UFS_NDADDR];
}
}