Skip to content

Commit

Permalink
Use -fallow-argument-mismatch for newer Fortran versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Oct 7, 2020
1 parent f1438db commit c426d1f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions OMCompiler/configure.ac
Expand Up @@ -246,6 +246,20 @@ for flag in -Werror=implicit-function-declaration -Werror=incompatible-pointer-t
done
CFLAGS="$OLD_CFLAGS"

AC_LANG([Fortran])
OLD_FCFLAGS="$FCFLAGS"
EXTRA_FCFLAGS=""
AC_MSG_CHECKING([for flags to append to FCFLAGS])
for flag in -fallow-argument-mismatch; do
FCFLAGS="$flag -Werror"
AC_TRY_LINK([], [], [
EXTRA_FCFLAGS="$EXTRA_FCFLAGS $flag"
],[])
done
AC_MSG_RESULT([$EXTRA_FCFLAGS])
FCFLAGS="$OLD_FCFLAGS $EXTRA_FCFLAGS"
AC_LANG([C])

if test ! "$DARWIN" = "1"; then

if test "`getconf LONG_BIT`" = "64"; then
Expand Down

0 comments on commit c426d1f

Please sign in to comment.