From cdd42274f7e6fa862f3bd3ba7115f2c9feac5d50 Mon Sep 17 00:00:00 2001 From: Lukacs Berki Date: Tue, 13 Sep 2016 07:52:01 +0000 Subject: More client fixes: - Use an explicit cast to void to tell the compiler that we are intentionally ignoring return values. - Delete the unused function GetPeerProcessId() -- MOS_MIGRATED_REVID=132970162 --- src/main/cpp/blaze_util_posix.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/cpp/blaze_util_posix.cc') diff --git a/src/main/cpp/blaze_util_posix.cc b/src/main/cpp/blaze_util_posix.cc index 2203cb0b20..a7ba5d4f4d 100644 --- a/src/main/cpp/blaze_util_posix.cc +++ b/src/main/cpp/blaze_util_posix.cc @@ -100,9 +100,7 @@ static void Daemonize(const string& daemon_output) { // In a daemon, no-one can hear you scream. open("/dev/null", O_WRONLY); } - if (dup(STDOUT_FILENO)) { // stderr (2>&1) - // Placate the compiler. - } + (void) dup(STDOUT_FILENO); // stderr (2>&1) } class PipeBlazeServerStartup : public BlazeServerStartup { -- cgit v1.2.3