Page MenuHomeFreeBSD

cddl/usr.sbin/zdb build warning fixes
Needs ReviewPublic

Authored by aprieger_llnw.com on Jun 13 2017, 4:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 8, 8:59 PM
Unknown Object (File)
Dec 20 2023, 5:09 AM
Unknown Object (File)
Nov 18 2023, 9:35 AM
Unknown Object (File)
Nov 18 2023, 6:39 AM
Unknown Object (File)
Nov 18 2023, 4:26 AM
Unknown Object (File)
Nov 4 2023, 9:15 PM
Unknown Object (File)
May 5 2023, 4:01 PM
Subscribers
None

Details

Summary

Code fixes for warnings during build time for the application in the folder cddl/usr.sbin/zdb

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 9848
Build 10283: arc lint + arc unit

Event Timeline

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

  1. cddl/contrib/opensolaris/cmd/zdb/zdb.c
    • warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
      • fix: change the print format modifier for the uint64_t variable from "%lld" to "%"PRIu64 on lines 1149
    • warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      • fix: add the "%s" string modifier in the printf statement before the expression on lines 2049, and 2061