[Cmake-commits] CMake branch, master, updated. v3.13.0-514-gaf2960e

Kitware Robot kwrobot at kitware.com
Mon Nov 26 07:53:04 EST 2018


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, master has been updated
       via  af2960e0fdd8be7cd3ab8b2b894e18a0d3056db9 (commit)
       via  2ca89b5a6969ce6b0bca44abf02a072e28e5c1cd (commit)
      from  6786345210994063030ad82f7ece66a461bbfb76 (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=af2960e0fdd8be7cd3ab8b2b894e18a0d3056db9
commit af2960e0fdd8be7cd3ab8b2b894e18a0d3056db9
Merge: 6786345 2ca89b5
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Mon Nov 26 12:50:38 2018 +0000
Commit:     Kitware Robot <kwrobot at kitware.com>
CommitDate: Mon Nov 26 07:50:51 2018 -0500

    Merge topic 'cxx-checks-tolerate-sprintf-warning'
    
    2ca89b5a69 C++ feature checks: Filter out libstdc++ sprintf warnings
    
    Acked-by: Kitware Robot <kwrobot at kitware.com>
    Merge-request: !2643


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2ca89b5a6969ce6b0bca44abf02a072e28e5c1cd
commit 2ca89b5a6969ce6b0bca44abf02a072e28e5c1cd
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Tue Nov 20 12:50:45 2018 -0500
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Tue Nov 20 12:50:45 2018 -0500

    C++ feature checks: Filter out libstdc++ sprintf warnings
    
    On OpenBSD linking to `libstdc++` with GCC 6.4 always warns:
    
        warning: sprintf() is often misused, please use snprintf()
    
    These do not affect the availability of C++ features we're checking,
    so filter them out.
    
    Fixes: #18602

diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake
index 1b57fd8..d941c16 100644
--- a/Source/Checks/cm_cxx_features.cmake
+++ b/Source/Checks/cm_cxx_features.cmake
@@ -22,6 +22,8 @@ function(cm_check_cxx_feature name)
     # Filter out warnings caused by local configuration.
     string(REGEX REPLACE "[^\n]*warning:[^\n]*directory not found for option[^\n]*" "" check_output "${check_output}")
     string(REGEX REPLACE "[^\n]*warning:[^\n]*object file compiled with -mlong-branch which is no longer needed[^\n]*" "" check_output "${check_output}")
+    # Filter out other warnings unrelated to feature checks.
+    string(REGEX REPLACE "[^\n]*warning:[^\n]*sprintf\\(\\) is often misused, please use snprintf[^\n]*" "" check_output "${check_output}")
     # Filter out xcodebuild warnings.
     string(REGEX REPLACE "[^\n]* xcodebuild\\[[0-9]*:[0-9]*\\] warning: [^\n]*" "" check_output "${check_output}")
     # If using the feature causes warnings, treat it as broken/unavailable.

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

Summary of changes:
 Source/Checks/cm_cxx_features.cmake | 2 ++
 1 file changed, 2 insertions(+)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list