【问题标题】:ctest custom warning exceptionctest 自定义警告异常
【发布时间】:2014-10-20 04:37:32
【问题描述】:

谁能解释我如何从仪表板中过滤掉以下警告?

警告:#warning“已弃用” ...../vcl_deprecated_header.h:10:3: 警告: #warning "deprecated" [-Wcpp] # 警告“已弃用”

到目前为止,我尝试在 CTestCustom.cmake 中有以下内容

设置(CTEST_CUSTOM_WARNING_EXCEPTION ${CTEST_CUSTOM_WARNING_EXCEPTION} “.*vcl_deprecated_header.警告。” “vcl_deprecated_header” ... )

我在 ctest_confgiure 之后有 ctest_read_custom_files

查看构建说明 - http://dash.orfeo-toolbox.org/viewNotes.php?buildid=160097

【问题讨论】:

    标签: cmake ctest


    【解决方案1】:

    尝试使用-Wno-cpp 编译以抑制警告?

    【讨论】:

    • 我想禁止仪表板上的警告。 -Wno-cpp 可以,但这不是我想要的
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-27
    • 2023-03-17
    • 1970-01-01
    • 2014-04-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多