diff options
author | Alexander Motin <mav@FreeBSD.org> | 2016-09-01 14:53:56 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2016-09-01 14:53:56 +0000 |
commit | d61364f63123aab7a6f526c67918ead0b65f0056 (patch) | |
tree | 8fb83c8a88ad996added137fc8917095bea83555 /cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c | |
parent | 35684d801f627fd10179ab538a44b78caf1424bb (diff) | |
parent | febe58b0782a0709640bd0909f15e14dd17fb97e (diff) | |
download | src-d61364f63123aab7a6f526c67918ead0b65f0056.tar.gz src-d61364f63123aab7a6f526c67918ead0b65f0056.zip |
MFV r302658: 6872 zfs libraries should not allow uninitialized variables
illumos/illumos-gate@f83b46baf98d276f5f84fa84c8b461f412ac1f5e
https://github.com/illumos/illumos-gate/commit/f83b46baf98d276f5f84fa84c8b461f41
2ac1f5e
https://www.illumos.org/issues/6872
We compile the zfs libraries with -Wno-uninitialized. We should remove
this. Change makefiles, fix new warnings, fix pbchk errors.
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Paul Dagnelie <pcd@delphix.com>
Notes
Notes:
svn path=/head/; revision=305206
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c')
-rw-r--r-- | cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c b/cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c index 14f37e11ce1f..9f98dbf98490 100644 --- a/cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c +++ b/cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c @@ -21,7 +21,7 @@ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2013 by Delphix. All rights reserved. + * Copyright (c) 2013, 2015 by Delphix. All rights reserved. * Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com>. */ @@ -597,7 +597,6 @@ get_replication(nvlist_t *nvroot, boolean_t fatal) verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, &top, &toplevels) == 0); - lastrep.zprl_type = NULL; for (t = 0; t < toplevels; t++) { uint64_t is_log = B_FALSE; |