Skip to content

Commit 9fa8cb2

Browse files
committed
Merge branch 'framework/add_gnu_implicit_none_flag' into develop (PR #1377)
This merge adds the -fimplicit-none flag to both the FFLAGS_OPT and FFLAGS_DEBUG variables in the 'gnu' build target in the top-level Makefile. With the addition of this flag, compilation will now fail with the gfortran compiler if implicitly defined variables are present in Fortran source code. * framework/add_gnu_implicit_none_flag: Add -fimplicit-none to FFLAGS_OPT and FFLAGS_DEBUG in 'gnu' build target
2 parents d922ad0 + 9743fb4 commit 9fa8cb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ gnu: # BUILDTARGET GNU Fortran, C, and C++ compilers
1616
"CC_SERIAL = gcc" \
1717
"CXX_SERIAL = g++" \
1818
"FFLAGS_PROMOTION = -fdefault-real-8 -fdefault-double-8" \
19-
"FFLAGS_OPT = -std=f2008 -O3 -ffree-line-length-none -fconvert=big-endian -ffree-form" \
19+
"FFLAGS_OPT = -std=f2008 -fimplicit-none -O3 -ffree-line-length-none -fconvert=big-endian -ffree-form" \
2020
"CFLAGS_OPT = -O3" \
2121
"CXXFLAGS_OPT = -O3" \
2222
"LDFLAGS_OPT = -O3" \
23-
"FFLAGS_DEBUG = -std=f2008 -g -ffree-line-length-none -fconvert=big-endian -ffree-form -fcheck=all -fbacktrace -ffpe-trap=invalid,zero,overflow" \
23+
"FFLAGS_DEBUG = -std=f2008 -fimplicit-none -g -ffree-line-length-none -fconvert=big-endian -ffree-form -fcheck=all -fbacktrace -ffpe-trap=invalid,zero,overflow" \
2424
"CFLAGS_DEBUG = -g" \
2525
"CXXFLAGS_DEBUG = -g" \
2626
"LDFLAGS_DEBUG = -g" \

0 commit comments

Comments
 (0)