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)
Sep 29 2024, 7:32 AM
Unknown Object (File)
Sep 27 2024, 1:04 PM
Unknown Object (File)
Sep 25 2024, 4:37 PM
Unknown Object (File)
Sep 25 2024, 6:54 AM
Unknown Object (File)
Sep 25 2024, 1:47 AM
Unknown Object (File)
Sep 24 2024, 4:22 PM
Unknown Object (File)
Sep 24 2024, 1:58 AM
Unknown Object (File)
Sep 20 2024, 5:19 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