Skip to content

Commit 1973bd9

Browse files
committed
add -Wno-surprising due to gfortran bugs (?)
1 parent 5dd745f commit 1973bd9

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
@@ -16,6 +16,8 @@ set(CMAKE_CXX_EXTENSIONS OFF)
1616
if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
1717
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-fimplicit-none>)
1818
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-ffree-line-length-none>)
19+
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58175
20+
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-Wno-surprising>)
1921
endif()
2022

2123
macro(add_prefix prefix rootlist)
@@ -303,7 +305,7 @@ foreach(target _PyPartMC)
303305
target_compile_options(${target} PRIVATE
304306
$<$<CXX_COMPILER_ID:MSVC>:/W4 /WX>
305307
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror>
306-
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-unused-parameter>
308+
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-unused-parameter>
307309
)
308310
endforeach()
309311

0 commit comments

Comments
 (0)