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)
Mon, May 19, 9:36 AM
Unknown Object (File)
Fri, May 16, 7:41 AM
Unknown Object (File)
Mon, May 12, 4:49 PM
Unknown Object (File)
Apr 12 2025, 10:41 AM
Unknown Object (File)
Apr 11 2025, 6:37 PM
Unknown Object (File)
Mar 10 2025, 7:06 PM
Unknown Object (File)
Feb 28 2025, 6:28 AM
Unknown Object (File)
Feb 4 2025, 9:30 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