From a7012f289ea9f5c3e60774377a0bac4be5f56332 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Tue, 7 Jun 2011 14:26:58 -0700 Subject: [PATCH] cfuse: really ignore write() return value 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 --- src/cfuse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfuse.cc b/src/cfuse.cc index a49252382f918..cc3cae42b3bc3 100644 --- a/src/cfuse.cc +++ b/src/cfuse.cc @@ -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; -- 2.39.5