kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [kudu] 03/03: [CMakeLists] get rid of warnings in ASAN builds
Date Wed, 13 Feb 2019 09:07:32 GMT
This is an automated email from the ASF dual-hosted git repository.

adar pushed a commit to branch branch-1.9.x
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit c7a994dab825868c757b7f3b9070bc92f6befe2c
Author: Alexey Serbin <alexey@apache.org>
AuthorDate: Tue Feb 12 11:38:44 2019 -0800

    [CMakeLists] get rid of warnings in ASAN builds
    This patch updates the flags for ASAN builds to get rid of the
    warnings like below:
      clang-6.0: warning: argument '-fno-sanitize-recover' is deprecated, \
          use '-fno-sanitize-recover=undefined,integer' or \
          '-fno-sanitize-recover=all' instead [-Wdeprecated]
    This is a follow-up to 678dbac6fb05d0370e40e6645d4b1ec530fa0180.
    Change-Id: I0a5877ed1743387881ab1d31f42519a361b64ea7
    Reviewed-on: http://gerrit.cloudera.org:8080/12459
    Tested-by: Kudu Jenkins
    Reviewed-by: Adar Dembo <adar@cloudera.com>
    (cherry picked from commit 5cfd81f7ed89b46dfdacc2389159fadbb59f0d8b)
    Reviewed-on: http://gerrit.cloudera.org:8080/12466
    Reviewed-by: Andrew Wong <awong@cloudera.com>
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a1c16c..c9b0394 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -353,7 +353,7 @@ if (${KUDU_USE_UBSAN})
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-sanitize=alignment")
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize-blacklist=${CMAKE_CURRENT_SOURCE_DIR}/build-support/ubsan-blacklist.txt")
   # Stop execution after UB or overflow is detected.
-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-sanitize-recover")
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-sanitize-recover=undefined,integer")
 endif ()

View raw message