]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cfuse: really ignore write() return value
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 7 Jun 2011 21:26:58 +0000 (14:26 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 7 Jun 2011 21:27:20 +0000 (14:27 -0700)
Hopefully this will make gcc stop complaining. The void cast no longer
seems to silence unchecked return code errors, on gitbuilder at least.

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

index a49252382f91878f411e03e87921922570cec6f0..cc3cae42b3bc3ab8d5b7ec2a052402e5161a2f77 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;
-      (void)::write(fd[1], &r, sizeof(r));
+      static int foo += ::write(fd[1], &r, sizeof(r));
     }
 
     //cout << "child done" << std::endl;