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)
Tue, Dec 10, 7:50 PM
Unknown Object (File)
Thu, Dec 5, 5:35 PM
Unknown Object (File)
Nov 4 2024, 12:02 AM
Unknown Object (File)
Nov 1 2024, 1:38 AM
Unknown Object (File)
Oct 30 2024, 6:00 AM
Unknown Object (File)
Oct 29 2024, 12:53 PM
Unknown Object (File)
Oct 20 2024, 6:21 PM
Unknown Object (File)
Oct 15 2024, 1:52 PM
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