Skip to content

Commit 999be0b

Browse files
committed
prevent erroneous rejection of valid code
1 parent 022fcf7 commit 999be0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tests/optval/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
ADDTEST(optval)
2+
# prevent false positive (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95446)
3+
if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
4+
set_source_files_properties("test_optval.f90" PROPERTIES COMPILE_FLAGS "-Wno-error=pedantic")
5+
endif()

0 commit comments

Comments
 (0)