]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a Wvoid-pointer-to-enum-cast warning missed in r359978.
authorBrooks Davis <brooks@FreeBSD.org>
Mon, 6 Jul 2020 22:39:42 +0000 (22:39 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Mon, 6 Jul 2020 22:39:42 +0000 (22:39 +0000)
commit2938ecc85c29202824e83d65af5c3a4fb7b3e5fb
tree0020b108ab5237fd607fc4c84becd8264db17b55
parent4dfc952a8d7cd65d1af129382c737026eef9ff68
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