Skip to content

Commit 0470949

Browse files
Enabled static analyzer (#14)
1 parent f35aeaf commit 0470949

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)