Skip to content

Commit be1e324

Browse files
Adds fimplicit-none to default make.inc for gfortran
1 parent ccae0c9 commit be1e324

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

INSTALL/make.inc.gfortran

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ CFLAGS = -O3
2020
# should not compile LAPACK with flags such as -ffpe-trap=overflow.
2121
#
2222
FC = gfortran
23-
FFLAGS = -O2 -frecursive
23+
FFLAGS = -O2 -frecursive -fimplicit-none
2424
FFLAGS_DRV = $(FFLAGS)
25-
FFLAGS_NOOPT = -O0 -frecursive
25+
FFLAGS_NOOPT = -O0 -frecursive -fimplicit-none
2626

2727
# Define LDFLAGS to the desired linker options for your machine.
2828
#

INSTALL/make.inc.gfortran-quad

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ CFLAGS = -O3
2727
# type.
2828
#
2929
FC = gfortran
30-
FFLAGS = -O2 -frecursive -freal-4-real-16 -freal-8-real-16
30+
FFLAGS = -O2 -frecursive -freal-4-real-16 -freal-8-real-16 -fimplicit-none
3131
FFLAGS_DRV = $(FFLAGS)
32-
FFLAGS_NOOPT = -O0 -frecursive -freal-4-real-16 -freal-8-real-16
32+
FFLAGS_NOOPT = -O0 -frecursive -freal-4-real-16 -freal-8-real-16 -fimplicit-none
3333

3434
# Define LDFLAGS to the desired linker options for your machine.
3535
#

make.inc.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ CFLAGS = -O3
2020
# should not compile LAPACK with flags such as -ffpe-trap=overflow.
2121
#
2222
FC = gfortran
23-
FFLAGS = -O2 -frecursive
23+
FFLAGS = -O2 -frecursive -fimplicit-none
2424
FFLAGS_DRV = $(FFLAGS)
25-
FFLAGS_NOOPT = -O0 -frecursive
25+
FFLAGS_NOOPT = -O0 -frecursive -fimplicit-none
2626

2727
# Define LDFLAGS to the desired linker options for your machine.
2828
#

0 commit comments

Comments
 (0)