1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

science/netcdf-fortran: Unbreak build with GCC 10

netcdf4_func.f90:730:75:

  730 |     nf90_inq_var_fill_FourByteReal = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                           1
......
  740 |     nf90_inq_var_fill_EightByteReal = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
netcdf4_func.f90:720:75:

  720 |     nf90_inq_var_fill_EightByteInt = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                           1
......
  740 |     nf90_inq_var_fill_EightByteReal = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/REAL(8)).
netcdf4_func.f90:710:74:

  710 |     nf90_inq_var_fill_FourByteInt = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                          1
......
  740 |     nf90_inq_var_fill_EightByteReal = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(8)).
netcdf4_func.f90:700:73:

  700 |     nf90_inq_var_fill_TwoByteInt = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                         1
......
  740 |     nf90_inq_var_fill_EightByteReal = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(2)/REAL(8)).
netcdf4_func.f90:690:73:

  690 |     nf90_inq_var_fill_OneByteInt = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                         1
......
  740 |     nf90_inq_var_fill_EightByteReal = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(1)/REAL(8)).
netcdf4_func.f90:670:75:

  670 |     nf90_def_var_fill_FourByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                           1
......
  680 |     nf90_def_var_fill_EightByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
netcdf4_func.f90:660:75:

  660 |     nf90_def_var_fill_EightByteInt = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                           1
......
  680 |     nf90_def_var_fill_EightByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/REAL(8)).
netcdf4_func.f90:650:74:

  650 |     nf90_def_var_fill_FourByteInt = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                          1
......
  680 |     nf90_def_var_fill_EightByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(8)).
netcdf4_func.f90:640:73:

  640 |     nf90_def_var_fill_TwoByteInt = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                         1
......
  680 |     nf90_def_var_fill_EightByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(2)/REAL(8)).
netcdf4_func.f90:630:73:

  630 |     nf90_def_var_fill_OneByteInt = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                         1
......
  680 |     nf90_def_var_fill_EightByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(1)/REAL(8)).

PR:		246700
This commit is contained in:
Tobias Kortkamp 2020-07-26 17:58:54 +00:00
parent 538b425cc3
commit 4ae06d3c85
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=543488

View File

@ -29,4 +29,11 @@ MAKE_JOBS_UNSAFE= yes
TEST_TARGET= check
USE_LDCONFIG= yes
.include <bsd.port.options.mk>
# XXX: Drop after updating to 4.5.3
.if ${FORTRAN_DEFAULT} == gfortran && ${GCC_DEFAULT} >= 10
FCFLAGS+= -fallow-argument-mismatch
.endif
.include <bsd.port.mk>