sly2j / nanocernlib

A minimal linux version of the old cernlib containing almost all cernlib routines.
5 stars 6 forks source link

[compiler.cmake] if gfortran > 10.0.0, -fallow-argument-mismatch -fallow-invalid-boz #1

Closed wdconinc closed 3 years ago

wdconinc commented 3 years ago

gcc-10 is stricter than gcc-9. gcc-9 compiles fine without the flags (and doesn't actually recognize the flags).

-fallow-argument-mismatch because e.g.

geant321/gbase/gffgo.F:50:25:

   47 |       CALL FFKEY ('ANNI',IANNI , 1,'INTEGER')
      |                         2
......
   50 |       CALL FFKEY ('CUTS',CUTGAM,16,'REAL')
      |                         1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)).

-fallow-invalid-boz because e.g.

packlib/cspack/xz/xzctof.F:40:27:

   40 |       DATA         IPATT/X'0123CDEF'/
      |                           1
Error: Hexadecimal constant at (1) uses nonstandard X instead of Z [see '-fno-allow-invalid-boz']