[Cmake-commits] CMake branch, next, updated. v3.1.0-rc1-223-g51ef964
Brad King
brad.king at kitware.com
Thu Oct 30 14:17:11 EDT 2014
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 51ef964615855d4fad76bf681b8c1a3f0ddb9882 (commit)
via 8d6ba35827bc4025a39acace8b65f2de96613a8a (commit)
from 50ffef22728c91aab4a5013790783f1e6cb1fff2 (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=51ef964615855d4fad76bf681b8c1a3f0ddb9882
commit 51ef964615855d4fad76bf681b8c1a3f0ddb9882
Merge: 50ffef2 8d6ba35
Author: Brad King <brad.king at kitware.com>
AuthorDate: Thu Oct 30 14:17:10 2014 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Oct 30 14:17:10 2014 -0400
Merge topic 'CheckStructHasMember-avoid-breakage-on-Wall' into next
8d6ba358 CheckStructHasMember: Avoid clang -Wall breakage (#15203)
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8d6ba35827bc4025a39acace8b65f2de96613a8a
commit 8d6ba35827bc4025a39acace8b65f2de96613a8a
Author: Peter Wu <peter at lekensteyn.nl>
AuthorDate: Thu Oct 30 18:49:09 2014 +0100
Commit: Brad King <brad.king at kitware.com>
CommitDate: Thu Oct 30 14:16:06 2014 -0400
CheckStructHasMember: Avoid clang -Wall breakage (#15203)
With CMAKE_C_COMPILER=clang and CMAKE_C_FLAGS='-Wall -Werror', this test
breaks with -Werror,-Wuninitialized. Fix this by getting rid of the
temporary variable.
diff --git a/Modules/CheckStructHasMember.cmake b/Modules/CheckStructHasMember.cmake
index c8949cf..de31d2c 100644
--- a/Modules/CheckStructHasMember.cmake
+++ b/Modules/CheckStructHasMember.cmake
@@ -69,8 +69,7 @@ macro (CHECK_STRUCT_HAS_MEMBER _STRUCT _MEMBER _HEADER _RESULT)
${_INCLUDE_FILES}
int main()
{
- ${_STRUCT}* tmp;
- (void) tmp->${_MEMBER};
+ (void)((${_STRUCT} *)0)->${_MEMBER};
return 0;
}
")
-----------------------------------------------------------------------
Summary of changes:
Modules/CheckStructHasMember.cmake | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list