Skip to content

Commit 69f4f87

Browse files
enable 'maybe-uninitialized'
1 parent 6899902 commit 69f4f87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
9393
add_compile_options(-Wno-parentheses)
9494
add_compile_options(-Wno-null-pointer-arithmetic)
9595
add_compile_options(-Wno-null-pointer-subtraction)
96+
if(CMAKE_COMPILER_IS_GNUCC)
97+
add_compile_options(-Werror=maybe-uninitialized)
98+
endif()
9699
endif()
97100

98101
#######################################################

0 commit comments

Comments
 (0)