Skip to content

Commit 7c2a1e4

Browse files
authored
cmake flags (#862)
1 parent 32c0347 commit 7c2a1e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,18 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
135135
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
136136
add_compile_options(
137137
-Wall
138+
-Wextra
139+
-Wintrinsic-shadow
140+
-Wunderflow
141+
-Wrealloc-lhs
142+
-Wsurprising
138143
-fcheck=all,no-array-temps
139144
-fbacktrace
140145
-fimplicit-none
141-
#-ffpe-trap=invalid,zero,denormal,overflow
142146
-fsignaling-nans
143147
-finit-real=snan
144148
-finit-integer=-99999999
149+
#-ffpe-trap=invalid,zero,denormal,overflow
145150
)
146151
endif()
147152

0 commit comments

Comments
 (0)