summaryrefslogtreecommitdiffstats
path: root/lib/libspl/asm-i386/Makefile.am
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-03-18 13:54:27 -0700
committerBrian Behlendorf <[email protected]>2011-03-18 13:54:49 -0700
commitec49a5f0ec020fa1b0d3e915e2ffb10bbed97599 (patch)
tree9a55659688060e6fd46e5a6e4c1ddeb1cf61e795 /lib/libspl/asm-i386/Makefile.am
parent04516a45b27144cf42bec005ef2de6d505d236a5 (diff)
Fix getcwd() warning
New versions glibc declare getcwd() with the warn_unused_result attribute. This results in a warning because the updated mount helper was not checking this return value. This issue was fixed by checking the return type and in the case of an error simply returning the passed dataset. One possible, but unlikely, error would be having your cwd directory unlinked while the mount command was running. cmd/mount_zfs/mount_zfs.c: In function ‘parse_dataset’: cmd/mount_zfs/mount_zfs.c:223:2: error: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result
Diffstat (limited to 'lib/libspl/asm-i386/Makefile.am')
0 files changed, 0 insertions, 0 deletions