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
F171073916: D59285.id185614.diff
Tue, Sep 8, 1:23 PM
F171018989: D59285.diff
Tue, Sep 8, 5:38 AM
F170978143: D59285.id185614.diff
Mon, Sep 7, 11:44 PM
F170962524: D59285.id185614.diff
Mon, Sep 7, 9:33 PM
F170947728: D59285.diff
Mon, Sep 7, 7:20 PM
F170939631: D59285.id185465.diff
Mon, Sep 7, 6:06 PM
Unknown Object (File)
Mon, Sep 7, 10:55 AM
Unknown Object (File)
Mon, Sep 7, 12:11 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 76343
Build 73226: arc lint + arc unit