]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a Wvoid-pointer-to-enum-cast warning missed in r359978.
authorbrooks <brooks@FreeBSD.org>
Mon, 6 Jul 2020 22:39:42 +0000 (22:39 +0000)
committerbrooks <brooks@FreeBSD.org>
Mon, 6 Jul 2020 22:39:42 +0000 (22:39 +0000)
commitea635969e425628486cdf5b46562cba4f5e35df4
tree0020b108ab5237fd607fc4c84becd8264db17b55
parentbda91da47b712679c8826faa57f5b5643c1013bd
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
cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c