Page MenuHomeFreeBSD

posixshm_test: Fix sign mismatches in ?: results.
ClosedPublic

Authored by jhb on Nov 29 2022, 7:53 PM.
Tags
None
Referenced Files
F139649702: D37539.diff
Sun, Dec 14, 2:16 PM
Unknown Object (File)
Sun, Dec 14, 8:11 AM
Unknown Object (File)
Fri, Dec 12, 1:42 AM
Unknown Object (File)
Sat, Dec 6, 1:40 PM
Unknown Object (File)
Sun, Nov 30, 11:45 AM
Unknown Object (File)
Tue, Nov 25, 11:57 PM
Unknown Object (File)
Fri, Nov 21, 12:01 AM
Unknown Object (File)
Thu, Nov 20, 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