Page MenuHomeFreeBSD

Fix -Wvoid-pointer-to-enum-cast warnings.
ClosedPublic

Authored by brooks on Apr 14 2020, 10:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 12:02 AM
Unknown Object (File)
Fri, Nov 1, 1:38 AM
Unknown Object (File)
Wed, Oct 30, 6:00 AM
Unknown Object (File)
Tue, Oct 29, 12:53 PM
Unknown Object (File)
Oct 20 2024, 6:21 PM
Unknown Object (File)
Oct 15 2024, 1:52 PM
Unknown Object (File)
Oct 6 2024, 12:41 AM
Unknown Object (File)
Oct 4 2024, 10:52 AM
Subscribers

Details

Summary

This pattern is used in callbacks with void * data arguments and seems
both relatively uncommon and relatively harmless. Silence the warning
casting through uintptr_t.

This warning is on by default in Clang 11.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable