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, Sep 13, 8:33 AM
Unknown Object (File)
Sat, Sep 12, 8:09 AM
Unknown Object (File)
Thu, Sep 10, 2:15 AM
Unknown Object (File)
Tue, Sep 8, 1:18 PM
Unknown Object (File)
Sun, Sep 6, 9:16 AM
Unknown Object (File)
Sat, Sep 5, 4:52 PM
Unknown Object (File)
Sat, Sep 5, 1:58 AM
Unknown Object (File)
Thu, Sep 3, 7: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