Commit Graph

7 Commits

Author SHA1 Message Date
Michael Hirsch, Ph.D 83b4e981c4 Use strict function prototypes 2019-11-18 22:21:36 +02:00
Michael Hirsch, Ph.D 1baa1c9222 use '-Werror=unused-parameter' for gcc/clang on project tests and -fimplicit-none on fortran
Fortran: check for undeclared variables by forcing implicit none everywhere
C/C++: check for unused parameters and return types

removed unused variables from test cases

ci: do missing return and unused arg check with Github Actions
2019-11-17 13:24:42 +02:00
Dylan Baker 23d2311d12 tests/fortran/9 cpp: It's okay to link ICL and ifort
This test currently assumes that the fortran compiler is gfotran, and
if we're not using g++ it skips. This patch changes it to skip if the
fotran compiler and the c++ compiler aren't the same family. This still
may skip in some cases it shouldn't (clang and gfort probably work fine
on windows), but it does enable ifort + ICL. Which is hte point.
2019-05-10 13:36:35 -07:00
Jussi Pakkanen 3997649139 Disable mixed (mscv/clang + gnu) Windows Fortran tests. Closes #4829. 2019-01-28 22:15:02 +02:00
Michael Hirsch, Ph.D 8636f31d9c BUGFIX: broken/missing Fortran code/unit tests 2019-01-27 20:57:21 +02:00
Dylan Baker 64107f5fe1 tests: Fix fortran + cpp test for ifort
To make ifort like rand we need to link with ifport, or we don't get
rand.
2018-11-15 18:42:25 -08:00
Jussi Pakkanen a2fdaa9ea0 Can use C++ and FORTRAN in a single target. Closes #2685. 2018-05-02 22:58:07 +03:00