issp-center-dev / HPhi

Quantum Lattice Model Simulator Package
https://www.pasums.issp.u-tokyo.ac.jp/hphi/en/
GNU General Public License v3.0
91 stars 25 forks source link

Fixed for GCC 10 #104

Closed yomichi closed 4 years ago

yomichi commented 4 years ago

Old HPhi has the C-lang and the Fortran-lang issues described on the following webpage, https://gcc.gnu.org/gcc-10/porting_to.html, and thus GCC 10, more strict than older versions, fails to build HPhi.

In this PR, I fixed the C-lang issue by adding extern to all the global variables and defining them just once, and downgraded the argument mismatch errors to warnings in order to avoid the Fortran-lang issue.