From a1f82fe4cae03fb469d3f80c640f8d6cfca99a48 Mon Sep 17 00:00:00 2001 From: itzandroidtab <9889898+itzandroidtab@users.noreply.github.com> Date: Thu, 14 Aug 2025 02:06:47 +0200 Subject: [PATCH] Enabled static analyzer --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cdbb20fe..af925eb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,8 @@ add_compile_options("-fsingle-precision-constant") # enable stack usage add_compile_options(-fstack-usage) +# enable the static analyzer for the whole project +add_compile_options(-fanalyzer) # include the target cpu and set a target board if (DEFINED TARGET_CPU) @@ -77,4 +79,4 @@ endif() add_subdirectory(${CMAKE_SOURCE_DIR}/klib) # add the project sources -add_subdirectory(${CMAKE_SOURCE_DIR}/project) \ No newline at end of file +add_subdirectory(${CMAKE_SOURCE_DIR}/project)