projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76fb792
)
Clang doesn't like -Wno-unused-but-set-variable
author
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Thu, 11 Aug 2011 08:08:58 +0000
(10:08 +0200)
committer
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Thu, 11 Aug 2011 08:08:58 +0000
(10:08 +0200)
The release versions of CMake don't yet properly support flag checking
in Clang, so we need to exclude it explicitly for the time being.
src/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/src/CMakeLists.txt
b/src/CMakeLists.txt
index 4d95da35b148ff6b8e639d63a6e324477b3181d6..883b809e2f994fa8050ea107a26a1edf476aaf65 100644
(file)
--- a/
src/CMakeLists.txt
+++ b/
src/CMakeLists.txt
@@
-237,7
+237,7
@@
else()
set(RELEASE_WARNING_FLAGS "")
endif()
- if(NOT APPLE)
+ 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")