From ebbd8446fa98424493ac29a8be0029e4f79f7de6 Mon Sep 17 00:00:00 2001
From: Martyn Gigg <martyn.gigg@stfc.ac.uk>
Date: Mon, 14 Nov 2011 08:20:21 +0000
Subject: [PATCH] Refs #3868. Ignore warnings about unused return values.

---
 Code/Mantid/Build/CMake/GNUSetup.cmake | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Code/Mantid/Build/CMake/GNUSetup.cmake b/Code/Mantid/Build/CMake/GNUSetup.cmake
index 50a903cd92e..f323cc7e4eb 100644
--- a/Code/Mantid/Build/CMake/GNUSetup.cmake
+++ b/Code/Mantid/Build/CMake/GNUSetup.cmake
@@ -12,7 +12,8 @@ set( GNUFLAGS "-Wall -Wextra -Wconversion -Winit-self -Wpointer-arith -Wcast-qua
 # we can't do anything about
 # -Wno-deprecated: Do not warn about use of deprecated headers.
 # -Wno-write-strings: Do not warn about deprecated conversions of char*->const char*
-set( GNUFLAGS "${GNUFLAGS} -Wno-deprecated -Wno-write-strings")
+# -Wno-unused-result: Do not warn about unused return values in some C functions
+set( GNUFLAGS "${GNUFLAGS} -Wno-deprecated -Wno-write-strings -Wno-unused-result")
 
 # Set the options fo gcc and g++
 set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GNUFLAGS}" )
-- 
GitLab