aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2020-07-06 22:39:42 +0000
committerBrooks Davis <brooks@FreeBSD.org>2020-07-06 22:39:42 +0000
commit2938ecc85c29202824e83d65af5c3a4fb7b3e5fb (patch)
tree0020b108ab5237fd607fc4c84becd8264db17b55 /cddl/contrib/opensolaris
parent4dfc952a8d7cd65d1af129382c737026eef9ff68 (diff)
downloadsrc-2938ecc85c29202824e83d65af5c3a4fb7b3e5fb.tar.gz
src-2938ecc85c29202824e83d65af5c3a4fb7b3e5fb.zip
Fix a Wvoid-pointer-to-enum-cast warning missed in r359978.
This pattern is used in callbacks with void * data arguments and seems both relatively uncommon and relatively harmless. Silence the warning by casting through uintptr_t. This warning is on by default in Clang 11. MFC after: 3 days Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24425
Notes
Notes: svn path=/head/; revision=362979
Diffstat (limited to 'cddl/contrib/opensolaris')
-rw-r--r--cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c b/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c
index fc1cefc9321b..51abb36f44ce 100644
--- a/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c
+++ b/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c
@@ -179,7 +179,7 @@ int
iidesc_count_type(void *data, void *private)
{
iidesc_t *ii = data;
- iitype_t match = (iitype_t)private;
+ iitype_t match = (iitype_t)(uintptr_t)private;
return (ii->ii_type == match);
}