From 74b98182efc699bef2234b65b229d8bb2cab5591 Mon Sep 17 00:00:00 2001
From: "Bradley C. Kuszmaul" <bradley@tokutek.com>
Date: Tue, 16 Apr 2013 23:59:21 -0400
Subject: [PATCH] Make the -Wno-unused-result problem go away.  Refs #2850.
 [t:2850]

git-svn-id: file:///svn/toku/tokudb@22720 c7de825b-a66e-492c-adef-691d508d4ae1
---
 toku_include/Makefile.include | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/toku_include/Makefile.include b/toku_include/Makefile.include
index a03dfb4545c..224154ae8a0 100644
--- a/toku_include/Makefile.include
+++ b/toku_include/Makefile.include
@@ -100,10 +100,11 @@ endif
 
 # -Wno-deprecated is needed on gcc 4.4.{1,2} to make the #ident complaints go away.
 # -Wno-strict-aliasing is needed on gcc 4.4.{1,2} to make certain gratuitous warnings go away.
+# -Wno-unused-result is needed on gcc 4.4.1 to make warnings about ignoring the results of certain system calls go away.
 ifeq ($(GCCVERSION),4.4.2)
  GCC_VERSION_SPECIFIC = -Wno-deprecated 
 else ifeq ($(GCCVERSION),4.4.1)
- GCC_VERSION_SPECIFIC = -Wno-deprecated
+ GCC_VERSION_SPECIFIC = -Wno-deprecated -Wno-unused-result
 endif
 
 WALL      = $(GCC_VERSION_SPECIFIC) -Wall -Wextra -Wcast-align -Wbad-function-cast -Wno-missing-noreturn -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations