Page MenuHomeFreeBSD

posixshm_test: Fix sign mismatches in ?: results.
ClosedPublic

Authored by jhb on Nov 29 2022, 7:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 14 2025, 2:16 PM
Unknown Object (File)
Dec 14 2025, 8:11 AM
Unknown Object (File)
Dec 12 2025, 1:42 AM
Unknown Object (File)
Dec 6 2025, 1:40 PM
Unknown Object (File)
Nov 30 2025, 11:45 AM
Unknown Object (File)
Nov 25 2025, 11:57 PM
Unknown Object (File)
Nov 21 2025, 12:01 AM
Unknown Object (File)
Nov 20 2025, 11:57 PM
Subscribers

Details

Summary

GCC 12's -Wsign-compare complains if the two alternative results of
the ?: operator are differently signed. Cast the small, sub-page
off_t values to size_t to quiet the warning.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable