Skip to content

Commit a1f82fe

Browse files
Enabled static analyzer
1 parent cafe886 commit a1f82fe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ add_compile_options("-fsingle-precision-constant")
4242
# enable stack usage
4343
add_compile_options(-fstack-usage)
4444

45+
# enable the static analyzer for the whole project
46+
add_compile_options(-fanalyzer)
4547

4648
# include the target cpu and set a target board
4749
if (DEFINED TARGET_CPU)
@@ -77,4 +79,4 @@ endif()
7779
add_subdirectory(${CMAKE_SOURCE_DIR}/klib)
7880

7981
# add the project sources
80-
add_subdirectory(${CMAKE_SOURCE_DIR}/project)
82+
add_subdirectory(${CMAKE_SOURCE_DIR}/project)

0 commit comments

Comments
 (0)