Skip to content

Commit c0a1369

Browse files
committed
change GCC's uninitialized reports into warning
1 parent a4aa48e commit c0a1369

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ target_compile_options(${PROJECT_NAME}-test
5959
-Wduplicated-branches
6060
#-Wswitch-default
6161
-Wcast-align=strict
62+
-Wno-error=maybe-uninitialized
63+
-Wno-error=uninitialized
6264
>
6365
$<$<CXX_COMPILER_ID:Clang>:
6466
-Wshift-sign-overflow

0 commit comments

Comments
 (0)