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
F118662993: D11171.diff
Sat, May 31, 1:02 PM
Unknown Object (File)
Mon, May 26, 8:02 PM
Unknown Object (File)
Apr 18 2025, 3:37 AM
Unknown Object (File)
Apr 16 2025, 11:37 AM
Unknown Object (File)
Apr 13 2025, 2:40 PM
Unknown Object (File)
Apr 7 2025, 5:38 PM
Unknown Object (File)
Mar 7 2025, 7:52 AM
Unknown Object (File)
Dec 13 2024, 6:18 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