From cad002c371dd712ae91de9544f0307ade9d63518 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 4 Aug 2021 15:09:38 -0400 Subject: MODERN_GCC flag enables -fallow-argument-mismatch --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2435f37..9cc5c09 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,12 @@ COMMON = Atmos.com Dummy.com Equivs.com Factor.com Kappa.com Linex.com \ X11LIB = /usr/X11/lib SMLIB = /usr/local/lib +ifeq ($(MODERN_GCC), 1) +FFLAGS_GCC10PLUS=-fallow-argument-mismatch +endif + FC = gfortran -FFLAGS = -w -ff2c -fdefault-double-8 -fdefault-real-8 +FFLAGS = -Wall -Wextra -ff2c -fdefault-double-8 -fdefault-real-8 $(FFLAGS_GCC10PLUS) LDFLAGS = -L$(X11LIB) -lX11 -ltcl -ltk -L$(SMLIB) -lplotsub -ldevices -lutils # here are the compilation and linking commands -- cgit