Page MenuHomeFreeBSD

posixshm_test: Fix sign mismatches in ?: results.
ClosedPublic

Authored by jhb on Nov 29 2022, 7:53 PM.
Tags
None
Referenced Files
F154381531: D37539.diff
Tue, Apr 28, 6:00 AM
F154346418: D37539.diff
Tue, Apr 28, 12:10 AM
Unknown Object (File)
Tue, Apr 14, 1:55 AM
Unknown Object (File)
Tue, Apr 7, 3:41 PM
Unknown Object (File)
Mar 22 2026, 12:47 PM
Unknown Object (File)
Mar 22 2026, 4:04 AM
Unknown Object (File)
Mar 15 2026, 8:06 PM
Unknown Object (File)
Mar 15 2026, 8:03 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 48540
Build 45426: arc lint + arc unit