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)
Sun, Apr 14, 1:59 AM
Unknown Object (File)
Dec 20 2023, 6:00 AM
Unknown Object (File)
Nov 18 2023, 10:16 AM
Unknown Object (File)
Nov 18 2023, 4:35 AM
Unknown Object (File)
Jul 9 2023, 2:41 PM
Unknown Object (File)
May 6 2023, 9:23 AM
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