Page MenuHomeFreeBSD

cddl/usr.bin/ztest build warning fixes
Needs ReviewPublic

Authored by aprieger_llnw.com on Jun 12 2017, 11:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 25, 4:48 PM
Unknown Object (File)
Sat, Oct 25, 2:49 PM
Unknown Object (File)
Sat, Oct 4, 6:06 AM
Unknown Object (File)
Sun, Sep 28, 12:29 PM
Unknown Object (File)
Jul 29 2025, 6:50 AM
Unknown Object (File)
Jul 11 2025, 5:59 AM
Unknown Object (File)
Jul 6 2025, 3:11 PM
Unknown Object (File)
Jul 5 2025, 12:27 PM
Subscribers
None

Details

Summary

Code fixes for warnings during build time of the application in the cddl/usr.bin/ztest folder

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 9837
Build 10272: arc lint + arc unit

Event Timeline

Changelog:
Pre-fix warnings are at: https://gist.github.com/aprieger-llnw/c7b4d3316c65bb5003229a420752557e

  1. cddl/contrib/opensolaris/cmd/ztest/ztest.c
    • warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
      • fix: change the print format modifier for the uint64_t variables from "%llu" to "%"PRIu64 on lines 2260, 3389, 3391, 3393, 3395, 3397, 3436, 3438, 3440, 3442, 3444, 4268, 4674, 4677, 4678
    • warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
      • fix: change the print format modifier for the int64_t variable from "%lld" to "%"PRId64 on line 2260