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)
Sun, Oct 26, 4:41 AM
Unknown Object (File)
Fri, Oct 17, 4:14 AM
Unknown Object (File)
Thu, Oct 16, 12:29 PM
Unknown Object (File)
Thu, Oct 16, 12:29 PM
Unknown Object (File)
Thu, Oct 16, 12:29 PM
Unknown Object (File)
Thu, Oct 16, 12:39 AM
Unknown Object (File)
Sat, Oct 11, 12:45 AM
Unknown Object (File)
Sun, Oct 5, 12:04 AM
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