Page MenuHomeFreeBSD

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

Authored by ngie on Mon, Aug 31, 2:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 2, 7:28 AM
Unknown Object (File)
Wed, Sep 2, 7:13 AM
Unknown Object (File)
Wed, Sep 2, 7:10 AM
Unknown Object (File)
Wed, Sep 2, 2:37 AM
Unknown Object (File)
Tue, Sep 1, 2:00 PM
Unknown Object (File)
Mon, Aug 31, 7:29 AM
Unknown Object (File)
Mon, Aug 31, 7:21 AM
Unknown Object (File)
Mon, Aug 31, 7:05 AM

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