GCC 10 is more strict on type safety
In release note,
Mismatches between actual and dummy argument lists in a single file are now rejected with an error. Use the new option -fallow-argument-mismatch to turn these errors into warnings; this option is implied with -std=legacy. -Wargument-mismatch has been removed.
QE now needs -fallow-argument-mismatch
to build. Better to work out a solution.