Skip to content

Instantly share code, notes, and snippets.

@aprieger-llnw
Created June 16, 2017 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aprieger-llnw/5fd2d6cd7562aeac1a261e7b4b72f559 to your computer and use it in GitHub Desktop.
Save aprieger-llnw/5fd2d6cd7562aeac1a261e7b4b72f559 to your computer and use it in GitHub Desktop.
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zdb/zdb.c:1149:41: warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
zfs_history_event_names[ievent], txg,
^~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zdb/zdb.c:2049:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
(void) printf(header ? header : "");
^~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zdb/zdb.c:2049:16: note: treat the string as an argument to avoid this
(void) printf(header ? header : "");
^
"%s",
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zdb/zdb.c:2061:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
(void) printf(footer ? footer : "");
^~~~~~~~~~~~~~~~~~~~
/usr/home/aprieger/repos/freebsd_master/freebsd/cddl/contrib/opensolaris/cmd/zdb/zdb.c:2061:16: note: treat the string as an argument to avoid this
(void) printf(footer ? footer : "");
^
"%s",
3 warnings generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment