From d86b5b29e12c81e5c52ddf2f5dfe20bac5725953 Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Wed, 10 Apr 2024 00:59:28 +0800 Subject: [PATCH] 240410.005928.HKT revise cmake.yml --- .github/workflows/cmake.yml | 2 +- fortran/tests/makefiles/Makefile.common | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 76e01f98a7..0bd732d4c9 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -159,7 +159,7 @@ jobs: # Classic Flang family with -Mchkptr would fail. See https://forums.developer.nvidia.com/t/bug-in-nvfortran-with-mchkptr-for-unallocated-optional-arguments/223220 # As of 20240220, aflang with -Mbounds would fail due to the bug at https://github.com/flang-compiler/flang/issues/1238 - {compiler: nvfortran, cflags: '-Wall', fflags: '-C -Wall -Wextra -Minform=warn -Mstandard -Mrecursive -Mbounds -Mchkstk'} - - {compiler: flang, cflags: '-Wall', fflags: '-pedantic'} + - {compiler: flang, cflags: '-Werror', fflags: '-pedantic'} - {compiler: aflang, cflags: '-Wall', fflags: '-pedantic -Weverything -Wall -Wextra -Minform=warn -Mstandard -Mrecursive'} steps: diff --git a/fortran/tests/makefiles/Makefile.common b/fortran/tests/makefiles/Makefile.common index 9c46e8842f..db72fb1282 100644 --- a/fortran/tests/makefiles/Makefile.common +++ b/fortran/tests/makefiles/Makefile.common @@ -394,7 +394,7 @@ FFORT := $(FFORT) -fimplicit-none -Werror ifeq ($(TESTDIM),small) FFORT := $(FFORT) endif -FFORT := $(FFORT) -std=f2018 -pedantic #-Kieee +FFORT := $(FFORT) -std=f2018 -pedantic # As of flang 19.0, only -std=f2008 is supported ftest_i2_r4_d1_tst_c ftest_i4_r4_d1_tst_c ftest_i8_r4_d1_tst_c ftest_i2_r4_d0_tst_c ftest_i4_r4_d0_tst_c ftest_i8_r4_d0_tst_c: \ FCO := $(FFORT) $(FFLAGSO)