Void cast some hv_store calls to get rid of warnings.
authorDerrik Pates <demon@now.ai>
Wed, 18 May 2011 17:13:54 +0000 (11:13 -0600)
committerDerrik Pates <demon@now.ai>
Wed, 18 May 2011 17:13:54 +0000 (11:13 -0600)
Fuse.xs

diff --git a/Fuse.xs b/Fuse.xs
index ce6bfc7..cf644bd 100755 (executable)
--- a/Fuse.xs
+++ b/Fuse.xs
@@ -517,11 +517,11 @@ int _PLfuse_open (const char *file, struct fuse_file_info *fi) {
        fi->fh = 0; /* Ensure it starts with 0 - important if they don't set it */
        fihash = newHV();
 #if FUSE_VERSION >= 24
-       hv_store(fihash, "direct_io", 9, newSViv(fi->direct_io), 0);
-       hv_store(fihash, "keep_cache", 10, newSViv(fi->keep_cache), 0);
+       (void) hv_store(fihash, "direct_io", 9, newSViv(fi->direct_io), 0);
+       (void) hv_store(fihash, "keep_cache", 10, newSViv(fi->keep_cache), 0);
 #endif
 #if FUSE_VERSION >= 29
-       hv_store(fihash, "nonseekable", 11, newSViv(fi->nonseekable), 0);
+       (void) hv_store(fihash, "nonseekable", 11, newSViv(fi->nonseekable), 0);
 #endif
        XPUSHs(sv_2mortal(newRV_noinc((SV*) fihash)));
        /* All hashref things done */