This is an automated email from the ASF dual-hosted git repository. pengzheng pushed a commit to branch hotfix/limit-gcc-analyzer-C in repository https://gitbox.apache.org/repos/asf/celix.git
commit aea3d6107fdeac79493f56de63632ec79d1896c2 Author: PengZheng <[email protected]> AuthorDate: Tue Feb 10 16:20:02 2026 +0800 Limit gcc analyzer to C. --- cmake/celix_project/CelixProject.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmake/celix_project/CelixProject.cmake b/cmake/celix_project/CelixProject.cmake index cec2ec133..3b24d175c 100644 --- a/cmake/celix_project/CelixProject.cmake +++ b/cmake/celix_project/CelixProject.cmake @@ -97,9 +97,10 @@ if (ENABLE_GCC_ANALYZER) "-Wno-analyzer-use-of-uninitialized-value" "-Wno-analyzer-fd-leak" "-Wno-analyzer-shift-count-negative" - ) - add_compile_options(${ANALYZER_FLAGS}) - else() + ) + + set(CMAKE_C_FLAGS "${ANALYZER_FLAGS} ${CMAKE_C_FLAGS}") + else() message(WARNING "ENABLE_GCC_ANALYZER is only supported with GCC ") endif() endif()
