aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-01-18 23:29:19 -0500
committerkwolekr <kwolekr@minetest.net>2015-01-18 23:29:19 -0500
commit38bd9e93a252cb2dd5ace6b0132514edff38b504 (patch)
tree07a891ba1f709cdb1651e7169a0e0a7f80425552 /src/CMakeLists.txt
parente36681101efdfec3ed9cf9d70f7c5296c4124cd6 (diff)
downloadminetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.tar.gz
minetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.tar.bz2
minetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.zip
Fix all warnings and remove -Wno-unused-but-set cflag
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 77977db9b..848eb8d3e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -656,13 +656,6 @@ else()
set(RELEASE_WARNING_FLAGS "")
endif()
- if(NOT APPLE AND NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
- CHECK_CXX_COMPILER_FLAG("-Wno-unused-but-set-variable" HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
- if(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
- set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-but-set-variable")
- endif(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
- endif()
-
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# clang does not understand __extern_always_inline but libc headers use it
set(OTHER_FLAGS "${OTHER_FLAGS} \"-D__extern_always_inline=extern __always_inline\"")