[Cmake-commits] CMake branch, next, updated. v3.6.1-1679-g3ebb968

Brad King brad.king at kitware.com
Thu Sep 1 11:19:01 EDT 2016


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  3ebb968dbc9ddd3fbadde1f251aaf2c3165a4512 (commit)
       via  fee8fafd78db49852ee44a1d8eb0a441cd52ccd1 (commit)
       via  3825a564930ffe09fd681632a905ab9c91c41d98 (commit)
      from  53f189c917de7b6657524f08e18502f445693712 (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 -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3ebb968dbc9ddd3fbadde1f251aaf2c3165a4512
commit 3ebb968dbc9ddd3fbadde1f251aaf2c3165a4512
Merge: 53f189c fee8faf
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu Sep 1 11:18:55 2016 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Sep 1 11:18:55 2016 -0400

    Merge topic 'libuv-scanbuild-fixes' into next
    
    fee8fafd CTestCustom: Suppress scan-build warning in libuv
    3825a564 libuv: Simplify variable initializations to satisfy Clang scan-build


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fee8fafd78db49852ee44a1d8eb0a441cd52ccd1
commit fee8fafd78db49852ee44a1d8eb0a441cd52ccd1
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu Sep 1 11:14:19 2016 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Thu Sep 1 11:16:30 2016 -0400

    CTestCustom: Suppress scan-build warning in libuv
    
    Clang scan-build warns in some expansions of RB_GENERATE_STATIC
    that it has a "Dereference of null pointer".  Simply suppress it
    since this is third-party code anyway.

diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in
index a39049b..4a540d2 100644
--- a/CTestCustom.cmake.in
+++ b/CTestCustom.cmake.in
@@ -82,6 +82,7 @@ list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
   "cm_sha2.*warning: Value stored to.*is never read"
   "testProcess.*warning: Dereference of null pointer .loaded from variable .invalidAddress.."
   "liblzma/simple/x86.c:[0-9]+:[0-9]+: warning: The result of the '<<' expression is undefined"
+  "libuv/src/.*:[0-9]+:[0-9]+: warning: Dereference of null pointer"
   )
 
 if(NOT "@CMAKE_GENERATOR@" MATCHES "Xcode")

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3825a564930ffe09fd681632a905ab9c91c41d98
commit 3825a564930ffe09fd681632a905ab9c91c41d98
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu Sep 1 11:09:25 2016 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Thu Sep 1 11:10:18 2016 -0400

    libuv: Simplify variable initializations to satisfy Clang scan-build
    
    The Clang scan-build tool warns about assignments whose values are never
    used, so initialize local variables at declaration instead.

diff --git a/Utilities/cmlibuv/src/unix/pipe.c b/Utilities/cmlibuv/src/unix/pipe.c
index b73994c..80f5e6f 100644
--- a/Utilities/cmlibuv/src/unix/pipe.c
+++ b/Utilities/cmlibuv/src/unix/pipe.c
@@ -42,13 +42,10 @@ int uv_pipe_init(uv_loop_t* loop, uv_pipe_t* handle, int ipc) {
 
 int uv_pipe_bind(uv_pipe_t* handle, const char* name) {
   struct sockaddr_un saddr;
-  const char* pipe_fname;
-  int sockfd;
+  const char* pipe_fname = NULL;
+  int sockfd = -1;
   int err;
 
-  pipe_fname = NULL;
-  sockfd = -1;
-
   /* Already bound? */
   if (uv__stream_fd(handle) >= 0)
     return -EINVAL;
diff --git a/Utilities/cmlibuv/src/unix/tty.c b/Utilities/cmlibuv/src/unix/tty.c
index b2d37f4..ae1018f 100644
--- a/Utilities/cmlibuv/src/unix/tty.c
+++ b/Utilities/cmlibuv/src/unix/tty.c
@@ -58,8 +58,8 @@ static int uv__tty_is_slave(const int fd) {
 
 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, int fd, int readable) {
   uv_handle_type type;
-  int flags;
-  int newfd;
+  int flags = 0;
+  int newfd = -1;
   int r;
   int saved_flags;
   char path[256];
@@ -72,9 +72,6 @@ int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, int fd, int readable) {
   if (type == UV_FILE || type == UV_UNKNOWN_HANDLE)
     return -EINVAL;
 
-  flags = 0;
-  newfd = -1;
-
   /* Reopen the file descriptor when it refers to a tty. This lets us put the
    * tty in non-blocking mode without affecting other processes that share it
    * with us.

-----------------------------------------------------------------------

Summary of changes:
 CTestCustom.cmake.in              |    1 +
 Utilities/cmlibuv/src/unix/pipe.c |    7 ++-----
 Utilities/cmlibuv/src/unix/tty.c  |    7 ++-----
 3 files changed, 5 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list