Page MenuHomeFreeBSD

tests/sys/kern/ktls_test: fix -Wsign-compare issue
ClosedPublic

Authored by ngie on Aug 31 2026, 2:38 AM.
Tags
None
Referenced Files
F176106294: D59285.id185614.diff
Fri, Oct 16, 4:05 AM
Unknown Object (File)
Fri, Oct 16, 12:04 AM
Unknown Object (File)
Tue, Oct 13, 8:46 PM
Unknown Object (File)
Tue, Oct 13, 6:36 AM
Unknown Object (File)
Tue, Oct 13, 5:05 AM
Unknown Object (File)
Sat, Oct 10, 11:02 PM
Unknown Object (File)
Tue, Oct 6, 9:42 PM
Unknown Object (File)
Sun, Oct 4, 2:34 PM

Details

Summary

Cast the size_t quantity used in a comparison to off_t to mute a
-Wsign-compare complaint that now occurs after ATF 0.22 [1].

MFC after: 2 weeks
Reported by: clang

  1. https://github.com/freebsd/atf/pull/72
Test Plan

Test passed after this change.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable