moelksasbyahmed opened a new pull request, #817: URL: https://github.com/apache/celix/pull/817
## This PR adds optional support for GCC’s static analyzer (-fanalyzer) to the Celix build system. What’s included Introduces a new `CMake` option: ENABLE_GCC_ANALYZER (OFF by default) When enabled and using `GCC`, `-fanalyzer` is added to: `CMAKE_C_FLAGS` `CMAKE_CXX_FLAGS` Extends conanfile.py with a corresponding option `(enable_gcc_analyzer)` so the analyzer can also be enabled in Conan-based builds. ### What’s not included * No analyzer warnings are fixed in this PR. * The analyzer is not enabled in CI. * No behavior or runtime changes. >Motivation GCC’s static analyzer has been improving significantly in recent releases and can help detect issues such as possible null dereferences and resource leaks. This PR lays the groundwork for experimenting with the analyzer locally and for potential future CI integration. Analyzer warnings can be addressed incrementally in follow-up PRs once there is agreement on scope and expectations. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
