Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs Fix build with -W...



details:   https://anonhg.NetBSD.org/src/rev/a9b7299a48b5
branches:  trunk
changeset: 999603:a9b7299a48b5
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Jun 12 04:20:18 2019 +0000

description:
Fix build with -Wgnu-designator in the ZFS code

struct buf buf = { b_bcount: MAXPHYS }; is a legacy style designator
extension and this raised a compiler error reported by a.rin@mix.

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 65c9c993453d -r a9b7299a48b5 external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c    Wed Jun 12 04:10:25 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c    Wed Jun 12 04:20:18 2019 +0000
@@ -224,7 +224,7 @@
                dvd->vd_maxphys = (pdk ? disk_maxphys(pdk) : MACHINE_MAXPHYS);
        */
        {
-               struct buf buf = { b_bcount: MAXPHYS };
+               struct buf buf = { .b_bcount = MAXPHYS };
                const char *dev_name;
 
                dev_name = devsw_blk2name(major(vp->v_rdev));



Home | Main Index | Thread Index | Old Index