commit c8370c96991cb8af647e46e5067b6c6641eacec4
parent ba78ea3e5fcb0813a779f26269c34aba9b341c16
Author: Hummer12007 <hilobakho@gmail.com>
Date: Mon, 3 Jul 2017 23:30:39 +0300
Disable -Wunused-result diagnostic
It caused unpredictable build failures with different build environments
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -10,6 +10,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
if (CMAKE_COMPILER_IS_GNUCC)
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 7.0)