diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2017-07-03 23:30:39 +0300 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2017-07-03 23:30:39 +0300 |
| commit | 053ba79d558c6f47e7265f58d0ea4ee18175b7db (patch) | |
| tree | 9e3f94462da0dd840cf50c7a724145e6d5b5473c /CMakeLists.txt | |
| parent | 4493e40b91e870060467251b9532237d478bdc5d (diff) | |
Disable -Wunused-result diagnostic
It caused unpredictable build failures with different build environments
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0257a99f..a4bf351b 100644 --- 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) |
