svn commit: r363048 - stable/12/cddl/contrib/opensolaris/tools/ctf/cvt
Brooks Davis
brooks at FreeBSD.org
Thu Jul 9 16:58:53 UTC 2020
Author: brooks
Date: Thu Jul 9 16:58:53 2020
New Revision: 363048
URL: https://svnweb.freebsd.org/changeset/base/363048
Log:
MFC r362979:
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.
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D24425
Modified:
stable/12/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c
==============================================================================
--- stable/12/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c Thu Jul 9 16:28:13 2020 (r363047)
+++ stable/12/cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c Thu Jul 9 16:58:53 2020 (r363048)
@@ -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);
}
More information about the svn-src-stable
mailing list