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)
Sat, Oct 11, 12:45 AM
Unknown Object (File)
Sun, Oct 5, 12:04 AM
Unknown Object (File)
Sat, Oct 4, 2:43 PM
Unknown Object (File)
Mon, Sep 22, 8:20 PM
Unknown Object (File)
Fri, Sep 19, 6:36 PM
Unknown Object (File)
Wed, Sep 17, 2:22 PM
Unknown Object (File)
Sep 7 2025, 2:37 PM
Unknown Object (File)
Aug 24 2025, 6:02 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