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)
May 7 2026, 2:26 PM
Unknown Object (File)
May 6 2026, 9:10 AM
Unknown Object (File)
May 6 2026, 7:13 AM
Unknown Object (File)
May 4 2026, 12:59 PM
Unknown Object (File)
Apr 28 2026, 6:00 AM
Unknown Object (File)
Apr 28 2026, 12:10 AM
Unknown Object (File)
Apr 14 2026, 1:55 AM
Unknown Object (File)
Apr 7 2026, 3:41 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