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
Unknown Object (File)
Tue, Oct 6, 9:42 PM
Unknown Object (File)
Sun, Oct 4, 2:34 PM
Unknown Object (File)
Sun, Oct 4, 6:57 AM
Unknown Object (File)
Sun, Oct 4, 3:20 AM
Unknown Object (File)
Sun, Oct 4, 3:20 AM
Unknown Object (File)
Sat, Oct 3, 11:01 AM
Unknown Object (File)
Fri, Oct 2, 8:03 AM
Unknown Object (File)
Thu, Oct 1, 1:47 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