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, Feb 8, 12:10 AM
Unknown Object (File)
Fri, Jan 30, 7:28 PM
Unknown Object (File)
Mon, Jan 26, 12:32 AM
Unknown Object (File)
Dec 14 2025, 2:16 PM
Unknown Object (File)
Dec 14 2025, 8:11 AM
Unknown Object (File)
Dec 12 2025, 1:42 AM
Unknown Object (File)
Dec 6 2025, 1:40 PM
Unknown Object (File)
Nov 30 2025, 11:45 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