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
F170844878: D59285.id185614.diff
Mon, Sep 7, 12:11 AM
F170821838: D59285.diff
Sun, Sep 6, 8:34 PM
Unknown Object (File)
Sun, Sep 6, 1:09 AM
Unknown Object (File)
Sat, Sep 5, 11:27 PM
Unknown Object (File)
Sat, Sep 5, 6:27 PM
Unknown Object (File)
Sat, Sep 5, 6:26 PM
Unknown Object (File)
Sat, Sep 5, 9:20 AM
Unknown Object (File)
Fri, Sep 4, 7:37 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