From: Sage Weil Date: Wed, 8 May 2013 23:42:24 +0000 (-0700) Subject: common/Preforker: fix warnings X-Git-Tag: v0.62~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a284c9ece85f11d020d492120be66a9f4c997416;p=ceph.git common/Preforker: fix warnings Signed-off-by: Sage Weil --- diff --git a/src/common/Preforker.h b/src/common/Preforker.h index 07f21b45e460..bda5771d37b5 100644 --- a/src/common/Preforker.h +++ b/src/common/Preforker.h @@ -6,6 +6,7 @@ #include #include #include +#include #include #include "common/safe_io.h" @@ -78,7 +79,7 @@ public: void exit(int r) { if (forked) { // tell parent - ::write(fd[1], &r, sizeof(r)); + (void)::write(fd[1], &r, sizeof(r)); } ::exit(r); } @@ -86,7 +87,7 @@ public: void daemonize() { assert(forked); static int r = -1; - ::write(fd[1], &r, sizeof(r)); + (void)::write(fd[1], &r, sizeof(r)); } };