This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via 70a4b1bfa04dbda7e552db4af8bfb838cb83a878 (commit)
via d06a9bdf3ab47231cc91b78dac77bd50de390565 (commit)
from c9b45a67ec6c7665563103de782241131e96873e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=70a4b1bfa04dbda7e552db4af8bfb838cb83a878
commit 70a4b1bfa04dbda7e552db4af8bfb838cb83a878
Merge: c9b45a6 d06a9bd
Author: Brad King <[email protected]>
AuthorDate: Tue Nov 13 13:27:28 2012 -0500
Commit: CMake Topic Stage <[email protected]>
CommitDate: Tue Nov 13 13:27:28 2012 -0500
Merge topic 'compiler-warnings' into next
d06a9bd Enable some compiler warnings when building CMake.
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d06a9bdf3ab47231cc91b78dac77bd50de390565
commit d06a9bdf3ab47231cc91b78dac77bd50de390565
Author: Stephen Kelly <[email protected]>
AuthorDate: Sun Sep 23 15:02:23 2012 +0200
Commit: Brad King <[email protected]>
CommitDate: Tue Nov 13 13:26:59 2012 -0500
Enable some compiler warnings when building CMake.
The warnings are enabled for now only when using GCC 4.2 or later.
It may be possible later to also enable them when building CMake
with clang. Don't duplicate the compiler flags if already set.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea1c033..a67fb6e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -585,6 +585,29 @@ option(CMAKE_STRICT
"Perform strict testing to record property and variable access. Can be used
to report any undefined properties or variables" OFF)
mark_as_advanced(CMAKE_STRICT)
+if(NOT CMake_VERSION_IS_RELEASE)
+ if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND
+ NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS 4.2)
+ set(C_FLAGS_LIST -Wcast-align -Werror-implicit-function-declaration
-Wchar-subscripts
+ -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security
+ -Wmissing-format-attribute -fno-common
+ )
+ set(CXX_FLAGS_LIST -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall
-W
+ -Wshadow -Wpointer-arith -Wformat-security
+ )
+
+ foreach(FLAG_LANG C CXX)
+ foreach(FLAG ${${FLAG_LANG}_FLAGS_LIST})
+ if(NOT " ${CMAKE_${FLAG_LANG}_FLAGS} " MATCHES " ${FLAG} ")
+ set(CMAKE_${FLAG_LANG}_FLAGS "${CMAKE_${FLAG_LANG}_FLAGS} ${FLAG}")
+ endif()
+ endforeach()
+ endforeach()
+
+ unset(C_FLAGS_LIST)
+ unset(CXX_FLAGS_LIST)
+ endif()
+endif()
# build the remaining subdirectories
add_subdirectory(Source)
-----------------------------------------------------------------------
Summary of changes:
hooks/post-receive
--
CMake
_______________________________________________
Cmake-commits mailing list
[email protected]
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits