]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_ioctl.c
GCC 7.1 fixes
authorTony Hutter <hutter2@llnl.gov>
Wed, 28 Jun 2017 17:05:16 +0000 (10:05 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 28 Jun 2017 17:05:16 +0000 (10:05 -0700)
commit682ce104cdd80db4b67eea09eb0a90324c5f98ee
tree3fa2067633f5c089685600f25601af0f791bfcaf
parentcda0317e4d2a1277b328e4fc42ee3699bbe46c12
GCC 7.1 fixes

GCC 7.1 with will warn when we're not checking the snprintf()
return code in cases where the buffer could be truncated. This
patch either checks the snprintf return code (where applicable),
or simply disables the warnings (ztest.c).

Reviewed-by: Chunwei Chen <david.chen@osnexus.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #6253
cmd/ztest/Makefile.am
config/user-no-format-truncation.m4 [new file with mode: 0644]
config/user.m4
lib/libspl/include/assert.h
lib/libzfs/libzfs_dataset.c
lib/libzfs/libzfs_iter.c
lib/libzfs/libzfs_sendrecv.c
module/zfs/zfs_ioctl.c
module/zfs/zvol.c