]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r362979:
authorBrooks Davis <brooks@FreeBSD.org>
Thu, 9 Jul 2020 16:58:53 +0000 (16:58 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Thu, 9 Jul 2020 16:58:53 +0000 (16:58 +0000)
commitafcca59b7787310c7122406cb0911b989770c93a
treed2aeac54d26b6d850441b0c3914562aa607993c1
parent825fdb6c3f9b861b6708426c5eaf98e27dfd4130
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
cddl/contrib/opensolaris/tools/ctf/cvt/iidesc.c