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