HomeFreeBSD

Avoid a gcc -Wint-to-pointer-cast warning

Description

Avoid a gcc -Wint-to-pointer-cast warning

On 32-bit platforms long long is generally 64-bits. Sufficiently modern
versions of gcc (13 in my testing) complains when casting a pointer to
an integer of a different width so cast to uintptr_t first to avoid the
warning.

Fixes: c183d164aa Parallel pool import

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Don Brady <don.brady@klarasystems.com>
Signed-off-by: Brooks Davis <brooks.davis@sri.com>
Closes #16203

Details

Provenance
brooksAuthored on May 25 2024, 1:45 AM
GitHub <noreply@github.com>Committed on May 25 2024, 1:45 AM
Parents
rG08648cf0da38: Allow block cloning to be interrupted by a signal.
Branches
Unknown
Tags
Unknown