]> git.proxmox.com Git - mirror_zfs-debian.git/commit - cmd/ztest/ztest.c
Fix gcc fortify source warnings
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Aug 2010 16:52:40 +0000 (09:52 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 Aug 2010 22:34:02 +0000 (15:34 -0700)
commit0e5b68e0159e071dae2cac01c2b6783b8e926133
tree831cd00c0a79b73297f7d6b051ce47a02e523fd5
parentf709a82dc11fe9bad4953e9cfb0a78f71c859ff0
Fix gcc fortify source warnings

Resolve issues uncovered by -D_FORTIFY_SOURCE=2, the default redhat
macro's file adds this option to the cflags.  This causes warnings
of the following type designed to keep the developer honest:

        warning: ignoring return value of 'foo', declared
                 with attribute warn_unused_result

The short term fix is to wrap these calls in VERIFY() to check the
return code.  The code was already assusing these would never fail.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cmd/zdb/zdb.c
cmd/ztest/ztest.c
lib/libzpool/kernel.c