]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cfuse.cc: fix warning
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 7 Jun 2011 18:56:05 +0000 (11:56 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 7 Jun 2011 18:56:05 +0000 (11:56 -0700)
We genuinely don't care about the return code we get back from this call
to write(2). So cast the result to void to tell gcc that we don't care.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/cfuse.cc

index d570e6fb7bdc5d13581caa9cf01385aa0cab68ae..a49252382f91878f411e03e87921922570cec6f0 100644 (file)
@@ -146,7 +146,7 @@ int main(int argc, const char **argv, const char *envp[]) {
 
     if (g_conf->daemonize) {
       //cout << "child signalling parent with " << r << std::endl;
-      ::write(fd[1], &r, sizeof(r));
+      (void)::write(fd[1], &r, sizeof(r));
     }
 
     //cout << "child done" << std::endl;