]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - contrib/unbound/libunbound/python/doc/examples/example3.rst
MFV r328251: 8652 Tautological comparisons with ZPROP_INVAL
authorAlexander Motin <mav@FreeBSD.org>
Mon, 22 Jan 2018 05:52:39 +0000 (05:52 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Mon, 22 Jan 2018 05:52:39 +0000 (05:52 +0000)
commit4eb2803697e3ce8644826bd4db8cc6d97dae89cd
treee9960502421aa561222e452dc3c62c643c64badb
parentcf52647c41665d0e813c82c3a59c8bd4c9c1d243
parent1e2bad5ea0535c78fa43eb68a4cfa6260a59fcb5
MFV r328251: 8652 Tautological comparisons with ZPROP_INVAL

illumos/illumos-gate@4ae5f5f06c6c2d1db8167480f7d9e3b5378ba2f2

https://www.illumos.org/issues/8652:
Clang and GCC prefer to use unsigned ints to store enums. With Clang, that
causes tautological comparison warnings when comparing a zfs_prop_t or
zpool_prop_t variable to the macro ZPROP_INVAL. It's likely that error
handling code is being silently removed as a result.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Approved by: Gordon Ross <gwr@nexenta.com>
Author: Alan Somers <asomers@gmail.com>
cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h