Code fixes for warnings during build time of the application in the cddl/usr.bin/ztest folder
Diff Detail
Diff Detail
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 9837 Build 10272: arc lint + arc unit
Event Timeline
Comment Actions
Changelog:
Pre-fix warnings are at: https://gist.github.com/aprieger-llnw/c7b4d3316c65bb5003229a420752557e
- 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
- warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]